(System Library)
Description: This module draws a vertical scrollbar and returns its position.
Returns: Numeric
Usage: Steady State
Format: \System\VScrollbar(Left, Bottom, Height, Steps, PageLen, Offset)
Parameters: Left { numeric } { required } { no default: }
Any numeric expression for the left side coordinate of the scrollbar.
Bottom { numeric } { required } { no default: }
Any numeric expression for the bottom coordinate of the scrollbar.
Height { numeric } { required } { no default: }
Any numeric expression for the height of the scrollbar in pixels.
Steps { numeric } { required } { no default: }
Any numeric expression giving the number of steps in the scrollbar.
PageLen { numeric } { required } { no default: }
Any numeric expression giving the number of steps in each page.
Offset { numeric } { required } { no default: }
A variable whose value gives the position of the thumb tab.
Comments: This module is a member of the System Library, and must therefore be prefaced by \System\, as shown in the "Format" section. If the application you are developing is a script application, the System variable must be declared in APPMOD.SRC and need not be prefaced by a backslash in the function call.
Steps can be calculated by subtracting the number of visible items from the total number of scrollable items, while PageLen is equal to the number of visible items.
Example:
\System\VScrollBar(VStatus(Self, 11) - VStatus(Self, 21)
{ Left },
VStatus(Self, 12) - 1 { Bottom },
VStatus(Self, 12) { Height },
Length - LinesVisible { Total steps },
LinesVisible { Steps in page },
Offset { Thumb tab pos });
See Also:
Bevel | Checkbox | ColorSelect | Droplist | Edit | HScrollBar | Listbox | RadioButtons | SplitList | Spinbox