ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Control functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Used to manage the position of elevators:
  • WINDEVAndroidiPhone/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 website.
Example
WINDEVAndroidiPhone/iPad
// Synchronisation des ascenseurs de deux champs Table
nPos = ScrollbarPosition(TABLE_MaTable, sbVert)
ScrollbarPosition(TABLE_MaTable2, sbVert, nPos)
Syntax

Finding out the scrollbar position Hide the details

<Result> = ScrollbarPosition(<Element used> [, <Orientation>])
<Result>: entier
  • Position of scrollbar box.
  • 0 if the scrollbar does not exist or if it is grayed.
<Element used>: Control, window or page name
  • WINDEVAndroidiPhone/iPad Name of the control used.
    iPhone/iPad This function is not available for the Image control.
  • WINDEVAndroidiPhone/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.
WINDEVAndroidiPhone/iPad

Modifying the scrollbar position Hide the details

<Result> = ScrollbarPosition(<Control used> , <Orientation> , <New position>)
<Result>: entier
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.
If the scrollbar does not exist or is grayed out, the new position is not taken into account: the function does nothing..
Remarks
WINDEV The ScrollbarMaxPosition function is used to find out the maximum position of one of the scrollbars (horizontal or vertical) of a field in 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: 09/21/2024

Send a report | Local help