GETSCROLLPOS

Top  Previous  Next

Syntax

INT = GETSCROLLPOS(win as WINDOW,id as INT)

Description

Gets the current scroll position of a scrollbar control or the windows scrollbars

Parameters

win - Window or dialog containing the scrollbar to query.

id - Identifier of a control or windows scrollbar.

Return value

The current position of the scrollbar

Remarks

Use and id of -1 for the windows horizontal scrollbar, -2 for the windows vertical scrollbar, or any other value for a scroll bar control.

See Also: SETSCROLLPOS

Example usage

hPos = GETSCROLLPOS(win, -1)