Controls > Advanced Controls > Slider > Slider State Properties
Slider State Properties
MaxRange and MinRange
Gets or sets the maximum value of the control. The MinRange property gets or sets the minimum value of the control. These properties can also be accessed via the Properties tab, and affect the number of ticks on the slider.
JScript
var longVal = Slider.MaxRange();
Slider.MaxRange(longVal);

var longVal = Slider.MinRange();
Slider.MinRange(longVal);

VBscript
longVal = Slider.MaxRange
Slider.MaxRange = longVal

longVal = Slider.MinRange
Slider.MinRange =longVal
Element
Description
longVal
An integer or floating-point value that indicates the maximum or minimum value of the Slider control.
Position
Gets or sets the logical position of the pointer. This property should be set in the Start event.
JScript
var longPos = Slider.Position();
Slider.Position(longPos);
VBscript
longPos = Slider.Position
Slider.Position = longPos
Element
Description
longPos
An integer or a floating-point value that determines the logical position of the pointer.
LineSize and PageSize
The LineSize property gets or sets the size of the interval when moving the slider with the keyboard. The PageSize property gets or sets the interval for moving the slider with page-related keys. These properties affect the feel and operation of the Slider.
Use a small value of LineSize to allow fine adjustment of the slider via the arrow keys.
Use a large value of PageSize to allow quick changes of Slider position using the Page Up and Page Down keys.
Use Home and End to move quickly to the MinRange and MaxRange values via the keyboard, independent of the PageSize setting.
JScript
var longSize = Slider.LineSize();
Slider.LineSize(longSize);

longSize = Slider.PageSize();
Slider.PageSize(longSize);

VBscript
longSize = Slider.LineSize
Slider.LineSize = longSize

longSize = Slider.PageSize
Slider.PageSize = longSize
Element
Description
longSize
A value that indicates the incremental adjustment to the Slider position while using the keyboard.
Was this helpful?