EditorGadget scroll bar bug
Posted: Fri Jun 29, 2007 9:34 am
Hi there,
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 :
Moreover, I've a suggestion, it could be great to have a flag for EditorGadget in order to have automatic wrap with too long lines.
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