WinXScroll_Scroll


WinXScroll_Scroll (hWnd, direction, unitType, scrollingDirection)

Generates a scrolling event

Parameter Description
hWnd The handle to the window to scroll
direction The scrollbar to scroll, see remarks for more info
unitType The type of unit to scroll by, see remarks for more info
scrollingDirection The direction to scroll in, -1 to scroll to the upper left, +1 to scroll to the lower right

Returns

$$TRUE on success or $$FALSE on fail

Remarks

The direction parameter identifies the scrollbar to scroll. Possible values are:

$$DIR_HORIZ
The horizontal scrollbar
$$DIR_VERT
The vertical scrollbar

The unitType parameter identifies which kind of unit to scroll by. Possible values are:

$$UNIT_LINE
Scrolls by a single line. The size of a line is defined by the scrollUnit parameter of the WinXScroll_SetPage function
$$UNIT_PAGE
Scrolls by an entire window
$$UNIT_END
Scrolls all the way to the end of the scrollbar

 

Examples

'scroll to the top left hand corner
WinXScroll_Scroll (#hMain, $$DIR_VERT, $$UNIT_END, -1)
WinXScroll_Scroll (#hMain, $$DIR_HORIZ, $$UNIT_END, -1)

Related Links

Scrolling
onScroll