PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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 Modify or recover the position of one of the scrollbars (horizontal or vertical) of an control or a window in a WINDEV or WINDEV Mobile application.
  • WEBDEV - Browser code Retrieves the position of one of the horizontal or vertical scrollbars found in a page of a WEBDEV site.
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>: Integer
  • Position of scrollbar box.
  • 0 if the scrollbar does not exist or if it is grayed.
<Element used>: Name of control, window or page
  • 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>: 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.
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: wd270obj.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment