The ScrollBar class provides methods to query and modify scroll bars. It inherits all methods of the DialogControl class (see page DialogControl Class).
Use the GetScrollBar method to retrieve an object of the ScrollBar class.
The ScrollBar class requires the class definition file oodwin32.cls:
::requires "oodwin32.cls"
Instances of the ScrollBar class implement the methods listed in the ScrollBar Instance Methods table.
Table 23-1. ScrollBar Instance Methods
Method... | ...on page |
---|---|
DeterminePosition | DeterminePosition |
Position | Position |
Range | Range |
SetRange | SetRange |
SetPos | SetPos |
>>-aScrollBar~SetRange(--min--,--max--+-----------+--)--------->< +-,--redraw-+
The SetRange method sets the minimum and maximum positions for the associated scroll bar.
The arguments are:
The minimum position to which the scroll bar can be moved.
The maximum position to which the scroll bar can be moved.
If you specify 1 or Y, the scroll bar is redrawn using the new range. Otherwise, the range is set but the scroll bar display is not updated. The default value is 1.
Setting the range was successful.
For all other cases.