AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Barra de desplazamiento
  • 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.
ScrollUsed 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 Scrollbar controls.
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 23/01/2023

Señalar un error o enviar una sugerencia | Ayuda local