|
|
|
|
- Overview
- Retrieving the cursor position
- Modifying the cursor position
- Properties specific to the management of a Scrollbar control
Handling a Scrollbar control through programming
WINDEV allows you to handle a Scrollbar control through programming. To do so, use the variable of the scrollbar control in the code. The variable of the Scrollbar control: - corresponds to the name of the scrollbar.
- is initialized with the position of scrollbar box.
Retrieving the cursor position To retrieve the position of the cursor in a a Scrollbar control, use the following syntax: <Position> = <Scrollbar Name> <Position> is an integer variable Remark: You can also use the Value property. Modifying the cursor position To modify the position of the cursor in a a Scrollbar control, use the following syntax: <Scrollbar Name> = <value> <Value> is a value found between the minimum and maximum value of the scrollbar. 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. Properties specific to the management of a Scrollbar control The following properties are used to manage the characteristics of a Scrollbar control by programming. | | Scroll | Used to find out and modify the scroll step of a Scrollbar control. | ScrollValue | Used to find out and modify the scroll value of a Scrollbar control. | MaxValue | Used to find out and modify the maximum bound of a Scrollbar control. | MinValue | Used to find out and modify the minimum bound of a Scrollbar control. |
For a complete list of WLanguage properties that can be used with a Scrollbar control, see Properties associated with Scrollbar controls.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|