ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Scrollbar control
  • Overview
  • Retrieving the cursor position
  • Modifying the cursor position
  • Properties specific to Scrollbar controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Manipulating Scrollbar controls programmatically
Overview
WINDEV allows you to programmatically manipulate Scrollbar controls. 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 Scrollbar control, use the following syntax:
<Position> = <Nom Ascenseur>
<Position> is an integer variable
Note: It's also possible to use the Value property.
Modifying the cursor position
To modify the position of the cursor in a Scrollbar control, use the following syntax:
<Nom Ascenseur> = <valeur>
<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.
Note: It's also possible to use the Value property.
Properties specific to Scrollbar controls
The following properties are specific to programmable Scrollbar control.
AdvanceUsed to find out and modify the scroll value of a Scrollbar control.
ScrollValueUsed to find out and modify the scroll value of a Scrollbar control.
MaxValueUsed to find out and modify the maximum bound of a Scrollbar control.
MinValueUsed to find out and modify the minimum bound of a Scrollbar control.

For a complete list of WLanguage properties that can be used with Scrollbar controls, see Scrollbar control properties.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help