ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Slider control
  • Overview
  • Retrieving the cursor position
  • Modifying the cursor position
  • Properties specific to the management of a slider
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 Slider control through programming
Overview
WINDEV and WINDEV Mobile allow 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 slider, use the following syntax:
<Position> = <Slider Name>
<Position> is an integer variable
Remark: You can also use the Value property.
Modifying the cursor position
To modify the position of a slider, use the following syntax:
<Slider Name> = <Value>
<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.
Properties specific to the management of a slider
The following properties are used to manage the characteristics of a slider by programming.
BackgroundImageUsed to find out and modify the background image of a standard slider.
ImageUsed to find out and modify the image of a cursor in a standard slider.
ImageStateUsed to find out and modify the number of drawings found in the image associated with the cursor image in a standard slider.
MaxValueUsed to find out and modify the upper bound of a slider.
MinValueUsed to find out and modify the lower bound of a slider.
VerticalUsed 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.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/23/2023

Send a report | Local help