Horizontal scrollbar

Mac OSX specific forum
said
Enthusiast
Enthusiast
Posts: 342
Joined: Thu Apr 14, 2011 6:07 pm

Horizontal scrollbar

Post 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
Fred
Administrator
Administrator
Posts: 18499
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [5.2- LTS] horizontal scrollbar

Post by Fred »

Yes, that's the way it works on OS X.
Post Reply