Code: Select all
If OpenWindow(0, 0, 0, 305, 140, "ScrollBarGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
; horizontal scrollbar, if (height >= width) then turns into vertical scrollbar!
ScrollBarGadget(0, 0, 0, 100, 100, 0, 100, 10)
;ScrollBarGadget(0, 0, 0, 100, 99, 0, 100, 10) ; works fine!
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Thanks,
Said

