The editor gadget can behave very poorly I'm afraid. Bugs that have been reported in the past are still not fixed.
Your help viewer suffers with a similar problem that you can see with the following :
Code: Select all
If OpenWindow(0, 0, 0, 400, 400, "EditorGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_SizeGadget | #PB_Window_MaximizeGadget)
EditorGadget(0, 10, 10, 380, 380)
For a = 0 To 30
AddGadgetItem(0, a, "Line "+Str(a))
Next
Repeat
event = WaitWindowEvent()
Select event
Case #PB_Event_SizeWindow
ResizeGadget(0, #PB_Ignore, #PB_Ignore, WindowWidth(0) - 20, WindowHeight(0) - 20)
EndSelect
Until event = #PB_Event_CloseWindow
EndIf
Scroll down a bit in the editor gadget and then maximize the window. On my system (Win 7x64) the scrollbar has not been properly erased. Only happens if the maximised window is large enough to remove the need for a scrollbar.
You can get around this with some strategically placed HideGadget() calls, but it makes for some very flickery resizing!
If it were me, I would abandon the editor gadget in favour of either a canvas gadget or a web gadget.
I may look like a mule, but I'm not a complete ass.