ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Control functions
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
Used to manage the position of scrollbars:
  • WINDEVUniversal Windows 10 AppAndroidiPhone/iPad Gets or sets the position of one of the scrollbars of a control or window in a WINDEV or WINDEV Mobile application.
  • WEBDEV - Browser code Gets the position of one of the horizontal or vertical scrollbars in a page of a WEBDEV site.
Example
WINDEVAndroidiPhone/iPad
// Synchronize the scrollbars of two Table controls
nPos = ScrollbarPosition(TABLE_MyTable, sbVert)
ScrollbarPosition(TABLE_MyTable2, sbVert, nPos)
Syntax

Finding out the scrollbar position Hide the details

<Result> = ScrollbarPosition(<Element used> [, <Orientation>])
<Result>: Integer
  • Position of scrollbar box.
  • 0 if the scrollbar does not exist or if it is grayed.
<Element used>: Control, window or page name
  • WINDEVUniversal Windows 10 AppAndroidiPhone/iPad Name of the control used.
    iPhone/iPad This function is not available for the Image control.
  • WINDEVUniversal Windows 10 AppAndroidiPhone/iPad Name of the window used.
  • WEBDEV - Browser code Name of page used.
<Orientation>: Optional Integer constant
Orientation of scrollbar for which the position must be retrieved:
sbHorzThe position is calculated for the horizontal scrollbar of control.
sbVert
(Default value)
The position is calculated for the vertical scrollbar of control.
WINDEVUniversal Windows 10 AppAndroidiPhone/iPad

Modifying the scrollbar position Hide the details

<Result> = ScrollbarPosition(<Control used> , <Orientation> , <New position>)
<Result>: Integer
New position of scrollbar box.
<Control used>: Control name
Name of the control used.
iPhone/iPad This function is not available for the Image control.
<Orientation>: Optional Integer constant
Orientation of the scrollbar for which the position must be modified:
sbHorzThe position is modified for the horizontal scrollbar of the control.
sbVertThe position is modified for the vertical scrollbar of the control.
<New position>: Optional integer
New position of the scrollbar. The scrollbar position starts from 1.
A correct position is forced if the specified value is not included within the bounds specified for the control scrollbar.
The new position is ignored if the scrollbar does not exist or if it is grayed: the function has no effect.
Remarks
WINDEV ScrollbarMaxPosition is used to find out the maximum position of one of the horizontal or vertical scrollbars found in a control of a WINDEV application.
Component: wd300obj.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/28/2022

Send a report | Local help