ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Scroll value and bounds
  • Limitations
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
In a Scrollbar control, the scroll value is the degree to which the scroll box moves when the user clicks the area between the scroll box and either of the scroll arrows.
Scroll value in a Scrollbar control
In a Spin control, this corresponds to the increments by which the value changes when the user clicks one of the arrows.
The ScrollValue property gets and sets the scroll value. You can:
  • Get the scroll value for a Scrollbar and Range Slider control, or the increment value for a Spin control.
  • Set the scroll value for a Scrollbar and Range Slider control, or the increment value for a Spin control.
Example
// Define the scroll value
SCROLL_Scrollbar1.ScrollValue = 10
// Simulate the scroll value of a page
SCROLL_Scrollbar1 += SCROLL_Scrollbar1.ScrollValue
Syntax

Getting the scroll value Hide the details

<Current scroll value> = <Control used>.ScrollValue
<Current scroll value>: Integer
Degree to which the scroll box moves when the user clicks the track of a Scrollbar or Range Slider control, or the arrows of a Spin control.
<Control used>: Control name
Name of the control used:
  • Scrollbar,
  • Spin,
  • Range Slider.

Setting the scroll value Hide the details

<Control used>.ScrollValue = <New scroll value>
<Control used>: Control name
Name of the control used:
  • Scrollbar,
  • Spin,
  • Range Slider.
<New scroll value>: Integer
New value to which the scroll box moves when the user clicks the track of a Scrollbar or Range Slider control, or the arrows of a Spin control.
Remarks

Scroll value and bounds

If the MinValue and MaxValue properties are less than ScrollValue, the ScrollValue property automatically takes the following value: (MaxValue - MinValue).

Limitations

The ScrollValue property applies only to controls in a window:
  • Scrollbar.
  • Spin.
  • Range Slider.
Linux In Linux, this property is only available for Scrollbar controls.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 11/03/2022

Send a report | Local help