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 they affect the number of ticks on the slider. The value of MinRange must be smaller than the value of MaxRange. To reverse the values on the slider to be in descending order, use the Invert property.
• 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
• Python
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
• Python
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
• Python
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.
|