SETSCROLLRANGE

Top  Previous  Next

Syntax

SETSCROLLRANGE(win as WINDOW,id as INT,min as INT,max as INT)

Description

Sets the scroll range of a scrollbar control or the windows scrollbars.

Parameters

win - Window or dialog containing the scrollbar control.

id - Identifier of the scrollbar control.

min - Minimum scroll position.

max - Maximum scroll position.

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. All values returned by the scrollbar will be between min and max.

See Also: GETSCROLLRANGE

Example usage

SETSCROLLRANGE mywnd, 17, 0, 50