Page 1 of 1

ScrollAreaGadget() and the scrollbars (misleading help file)

Posted: Sat Feb 06, 2016 3:07 pm
by infratec
Bug or help is wrong.

It is written that if the scroll area is smaller than the gadget size the scrolling is disabled.
In my opinion this means that also the scrollbars are hidden.

My example:

Code: Select all

OpenWindow(0, 0, 0, 800, 600, "Test", #PB_Window_SystemMenu|#PB_Window_ScreenCentered)
ScrollAreaGadget(0, 0, 0, 800, 600, 797, 597)

Repeat
  
  Event = WaitWindowEvent()
  
  Select Event
    Case #PB_Event_CloseWindow
      Exit = #True
  EndSelect
  
Until Exit
If you reduce both values from 7 to 6 (796 and 596) the scrollbars disappears.
But 797 is < 800 and 597 is < 600.

Bug or fault in help (at least german) :?:

PB 5.42b1 x86 on Win 7 x64.

Bernd

Re: ScrollAreaGadget() and the scrollbars (misleading help f

Posted: Sat Feb 06, 2016 3:15 pm
by infratec
Found it:

You have to use #PB_ScrollArea_BorderLess to make it work as expected.

I thought that this is the default, so I didn't care about that.

The default should also be mentioned in the help.

So please move this to the help bug section.
(Or make #PB_ScrollArea_BorderLess the default value as bugfix)

Bernd

Re: ScrollAreaGadget() and the scrollbars (misleading help f

Posted: Sat Apr 21, 2018 10:12 pm
by Andre
Something Fred or freak should check, if the standard PB behaviour will be changed, or which note should be added to the docs.