ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Slider control (WEBDEV)
  • Item characteristics
  • Handling the item and the slider
  • Updating the Slider control with the value from the item
  • Updating the item with the data from the Slider 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
Binding a WEBDEV slider to an item
Item characteristics
A WEBDEV slider can be bound to an item in a data file, query, etc.
For a linear slider, the item contains the value defined by the slider cursor.
The characteristics of the item are as follows:
  • the item is an Integer.
  • the item contains the value of the slider cursor position. This position corresponds to the slider value.
  • the item value must be between the minimum and maximum value of the slider.
For a range slider, two items are bound to the control:
  • an item containing the value of the main cursor (lower value).
  • an item containing the secondary value (upper value).
The characteristics of the items are as follows:
  • the items are Integers.
  • the items contain the values of the slider cursors. These values correspond to the minimum and maximum values of the slider.
  • the value of each item must be between the minimum and maximum value of the slider.
Handling the item and the slider

Updating the Slider control with the value from the item

1st case: the controls in the page are bound to items in a data file
All the controls bound to an item in the data file (or a related file) will be updated by FileToPage.
2nd case: the controls in the page are not bound to items in a data file
A value must be assigned to each control using the following syntax:
  • Linear Slider control:
    <Slider control> = <Data file>.<Item>
  • Range Slider control:
    <Slider control>.LowerValue = <Data file>.<Item1>
    <Slider control>.UpperValue = <Data file>.<Item2>

Updating the item with the data from the Slider control

1st case: the controls in the page are bound to items in a data file
All the items in the data file (or a related file) that are bound to a control in the page will be updated by PageToFile.
2nd case: the controls in the page are not bound to items in a data file
The value of each control must be assigned to each item using the following syntax:
  • Linear Slider control:
    <Data file>.<Item> = <Slider control>
  • Range Slider control:
    <Data file>.<Item1> = <Slider control>.LowerValue
    <Data file>.<Item2> = <Slider control>.UpperValue
Minimum version required
  • Version 18
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help