ScrollBarGadget3D()

Syntax

Result = ScrollBarGadget3D(#Gadget3D, x, y, Width, Height, Minimum, Maximum, PageLength [, Flags])
Description
Creates a scrollbar gadget in the current GadgetList. If #PB_Any is used as '#Gadget3D' parameter, the new gadget number will be returned as 'Result'. It's widely used when displaying only a part of an object. The Minimum-Maximum range should be between 0 and 10,000. The 'PageLength' is the number which defines a page. For example you can have a picture which is 100 pixels width and you only see 25 pixels. What you see is a called a 'page', in this example, the page length will be 25, the Mininum will be 0 and the Maximum will be 100. #Gadget3D will be the number returned by EventGadget3D() function.

'Flags' are optionals and can be composed of one of the following constants:
  #PB_ScrollBar3D_Vertical : The scrollbar is vertical (instead of horizontal, which is the default).
To add a 'mini help' to this gadget, use GadgetToolTip3D().

The following functions can be used to act on this gadget:

- GetGadgetState3D(): Returns the current slider position (value between the Minimum-Maximum range).
- SetGadgetState3D(): Changes the current slider position.
- GetGadgetAttribute3D(): With one of the following attributes:
  #PB_ScrollBar3D_Minimum   : Returns the minimum scroll position.
  #PB_ScrollBar3D_Maximum   : Returns the maximum scroll position.
  #PB_ScrollBar3D_PageLength: Returns the PageLength value.
- SetGadgetAttribute3D(): With one of the following attributes:
  #PB_ScrollBar3D_Minimum   : Changes the minimum scroll position.
  #PB_ScrollBar3D_Maximum   : Changes the maximum scroll position.
  #PB_ScrollBar3D_PageLength: Changes the PageLength value.

Supported OS

All

<- ScrollAreaGadget3D() - Gadget3D Index - SetActiveGadget3D() ->