ScrollAreaGadget() and the scrollbars (misleading help file)

Found an issue in the documentation ? Please report it here !

Moderator: Documentation Editors

infratec
Always Here
Always Here
Posts: 6817
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

ScrollAreaGadget() and the scrollbars (misleading help file)

Post 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
infratec
Always Here
Always Here
Posts: 6817
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

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

Post 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
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2056
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

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

Post 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.
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
Post Reply