MaxPosition property for PowerScript controls
Controls
HProgressBar, VProgressBar, HScrollBar, VScrollBar, HTrackBar, VTrackBar
controls
Description
The MaxPosition property specifies the value of the Position
property when the progress indicator, scroll box, or slider is at
the bottom of the vertical control or the right edge of the horizontal
control. For a progress bar, this value can be different from the
end of the control’s range, set with the SetRange function.
Usage
In a painter
To specify the maximum position of the progress
indicator, scroll box, or slider:
-
Enter an integer value into the Max Position
field of the General tab of the control’s Properties view.
In scripts
The MaxPosition property takes an integer value.
The following example specifies that the value of the Position
property is 120 when a scroll box is in the maximum position:
1 |
vsb_1.MaxPosition = 120 |