PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Used to manage the position of scrollbars:
  • WINDEVAndroidiPhone/iPadWindows MobileUniversal Windows 10 App Modifies or retrieves the position of one of the horizontal or vertical scrollbars found in a control of a WINDEV or WINDEV Mobile application.
  • Versions 22 and later
    WEBDEV - Browser code Retrieves the position of one of the horizontal or vertical scrollbars found in a control of a WEBDEV site.
    New in version 22
    WEBDEV - Browser code Retrieves the position of one of the horizontal or vertical scrollbars found in a control of a WEBDEV site.
    WEBDEV - Browser code Retrieves the position of one of the horizontal or vertical scrollbars found in a control of a WEBDEV site.
Versions 20 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Windows Mobile This function is now available for the Windows Mobile applications.
New in version 20
iPhone/iPad This function is now available for the iPhone/iPad applications.
Windows Mobile This function is now available for the Windows Mobile applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Windows Mobile This function is now available for the Windows Mobile applications.
Versions 21 and later
Android This function is now available for the Android applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Android This function is now available for the Android applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Android This function is now available for the Android applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
WEBDEV - Browser code This function is now available in browser code.
New in version 22
WEBDEV - Browser code This function is now available in browser code.
WEBDEV - Browser code This function is now available in browser code.
Example
WINDEVAndroidiPhone/iPadWindows Mobile
// 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(<Control Name> [, <Orientation>])
<Result>: Integer
  • Position of scrollbar box.
  • 0 if the scrollbar does not exist or if it is grayed.
<Control Name>: Character string (with or without quotes)
Name of control used.
iPhone/iPad This function is not available for the Image control.
<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/iPadWindows MobileUniversal Windows 10 App

Modifying the scrollbar position Hide the details

<Result> = ScrollbarPosition(<Control Name> , <Orientation> , <New Position>)
<Result>: Integer
New position of scrollbar box.
<Control Name>: Character string (with or without quotes)
Name of 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
Versions 21 and later
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.
New in version 21
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.
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.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
WEBDEV - Browser code WDJS.DLL
Android wd230android.jar
Minimum required version
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment