Horizontal scrollbar
Posted: Wed Oct 09, 2013 8:54 am
Looks like when width is smaller than or equal to height the scrollbar is created as vertical always!
Height = 100 is not of great use but it shows the issue clearly, the same problem occurs when w=h= 20 or any other value
Thanks,
Said
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