PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Overview
  • Retrieving the cursor position
  • Modifying the cursor position
  • Properties specific to the management of a Scrollbar control
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Handling a Scrollbar control through programming
Overview
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.
Versions 20 and later
Scroll
New in version 20
Scroll
Scroll
Used to find out and modify the scroll step 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 a Scrollbar control, see Properties associated with the Scrollbar control.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment