|
|
|
|
- Overview
- Retrieving the cursor position
- Modifying the cursor position
- Properties specific to the management of a WEBDEV slider
Handling a WEBDEV Slider control through programming
WEBDEV allows you to handle a Slider control through programming. To do so, use the variable of the Slider control in the code. The variable of the Slider control: - corresponds to the name of the slider.
- is initialized with the position of the slider cursor.
Retrieving the cursor position To retrieve the position of a linear slider, use the following syntax: <Position> = <Slider Name> <Position> is an integer variable that corresponds to the cursor position. Remarks: - For a range slider, <Position> corresponds to the position of the main cursor (cursor of the lower value).
- You can also use the Value property.
Lower Position> = <Slider Name>.LowerValue Upper Position> = <Slider Name>.UpperValue <Lower Position> and <Upper Position> are integer variables. Modifying the cursor position To modify the position of a linear slider, use the following syntax: <Value> is a value included between the minimum value and the maximum value of the slider. These values have been defined in the control description window or in the code with the MinValue and MaxValue properties. Remark: You can also use the Value property. To modify the position of a range slider, use the following syntax: <Slider Name>..LowerValue = <Position of Main Cursor> <Slider Name>..UpperValue = <Position of Secondary Cursor> <Position of Main Cursor> and <Position of Secondary Cursor> are values included between the minimum value and the maximum value of the slider. These values have been defined in the control description window or in the code with the MinValue and MaxValue properties. Properties specific to the management of a WEBDEV slider The following properties are used to manage the characteristics of a slider by programming. | | LowerValue | Used to find out and modify the lower value of a range slider. | MaxValue | Used to find out and modify the upper bound of a slider | MinValue | Used to find out and modify the lower bound of a slider | UpperValue | Used to find out and modify the upper value of a range slider. | Vertical | Used to find out whether the standard slider is horizontal or vertical. |
For a complete list of WLanguage properties that can be used with a Slider control, see Properties associated with Slider controls.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|