PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Scroll value and bounds
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The scroll value in a Scrollbar control corresponds to the movement generated when the user clicks the empty part of the scrollbar track.
Image of scroll value on a Scrollbar control
The scroll value in a Spin control corresponds to the increment step of the spin.
The ScrollValue property is used to set the scroll value. You can:
  • Get the scroll value for a Scrollbar, Spin or Range Slider control.
  • Change the scroll value for a Scrollbar, Spin or Range Slider control.
Versions 16 and later
WINDEVLinux This property is now available for WINDEV applications in Linux, for Scrollbar controls only.
New in version 16
WINDEVLinux This property is now available for WINDEV applications in Linux, for Scrollbar controls only.
WINDEVLinux This property is now available for WINDEV applications in Linux, for Scrollbar controls only.
Example
// Define the scroll value
SCROLL_Scrollbar1.ScrollValue = 10
// Simulate the scroll value of a page
SCROLL_Scrollbar1 += SCROLL_Scrollbar1.ScrollValue
Syntax

Finding out the value of the scroll Hide the details

<Current scroll value> = <Control used>.ScrollValue
<Current scroll value>: Integer
Move generated by a click performed on the bar of the Scrollbar control (or Range Slider) or on the button of the Spin control.
<Control used>: Control name
Name of control used:
  • Scrollbar,
  • Spin,
  • Versions 15 and later
    Range Slider.
    New in version 15
    Range Slider.
    Range Slider.

Modifying the value of the scroll Hide the details

<Control used>.ScrollValue = <New scroll value>
<Control used>: Control name
Name of control used:
  • Scrollbar,
  • Spin,
  • Versions 15 and later
    Range Slider.
    New in version 15
    Range Slider.
    Range Slider.
<New scroll value>: Integer
New value of the move generated by a click performed on the bar of the Scrollbar control (or Range Slider) or on the button of the 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).

Limits

The ScrollValue property applies only to controls in a window:
  • Scrollbar.
  • Spin.
  • Versions 15 and later
    Range Slider.
    New in version 15
    Range Slider.
    Range Slider.
Linux In Linux, this property is available for the Scrollbar controls only.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment