Page 1 of 1

Horizontal scrollbar

Posted: Wed Oct 09, 2013 8:54 am
by said
Looks like when width is smaller than or equal to height the scrollbar is created as vertical always!

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
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

Re: [5.2- LTS] horizontal scrollbar

Posted: Sun Nov 03, 2013 3:04 pm
by Fred
Yes, that's the way it works on OS X.