Here is a small, present in each PureBasic release. When you use a text that is too long, in an EditorGadget, an horizontal scroll bar is displayed. And we can "browse" the text using it in two ways. Move bar, or click arrow. And the bug happens when using right arrow. Scroll bar is infinite when using arrow. It doesn't stop when text is finished.
An example :
Code: Select all
If OpenWindow(0, 0, 0, 322, 150, "EditorGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) And CreateGadgetList(WindowID(0))
EditorGadget(0, 8, 8, 306, 133)
AddGadgetItem(0, 0, "This is a too long text : it can't be displayed completly. You'll have to use scrollbar !")
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf