Code: Select all
If OpenWindow(0, 0, 0, 322, 150, "EditorGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
hWnd = EditorGadget(0, 8, 8, 306, 73)
For a = 0 To 5
AddGadgetItem(0, a, "Line "+Str(a))
Next
ButtonGadget(1, 10, 100, 80, 20, "CLICK!")
Repeat
ev = WaitWindowEvent()
If ev =#PB_Event_Gadget
If EventGadget() = 1
ClearGadgetItems(0)
EndIf
EndIf
Until ev = #PB_Event_CloseWindow
EndIf
My suspicion is that the editor gadget has a timer running for some reason which is reinstating the scrollbar before it finishes. With a suitable delay I can remove the scrollbar easily enough, but this is damn annoying!
Can someone else running Vista confirm this please before I try to find a workaround. I'd be interested also to see if this is a problem on Win 7 if someone could try it out for me?
Thanks.




