GETSCROLLRANGE

Top  Previous  Next

Syntax

GETSCROLLRANGE(win as WINDOW,id as INT,vMin as INT BYREF,vMax as INT BYREF)

Description

Retrieves the scroll range of a scrollbar.

Parameters

win - [in] Window or dialog containing the scrollbar to query.

id - [in] Identifier of the scrollbar control or windows scrollbar

vMin - [out] Variable to receive the minimum range value.

vMax - [out] Variable to receive the maximum range value.

Return value

None

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: SETSCROLLRANGE

Example usage

DEF min,max as INT
GETSCROLLRANGE mydlg, 5, min, max