GUI Help > Special > setScrollbarRange
setScrollbarRange
setScrollbarRange handle gadget, int min, int max
Description: Sets the maximum and minimum possible positions of the slider. When the slider is at the leftmost possible position, getScrollbarPosition will return the minimum value, when it is at the rightmost possible position, getScrollbarPosition will return the maximum value.
Return Value:
Parameters:
gadget | Handle to a scrollbar gadget
min | Minimum possible value of the scrollbar's position
max | Maximum possible value of the scrollbar's position
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)