Scrolling Functions Help

You can use the scrolling functions to control the scrollbars attached to the window using the WM_HSCROLL or WM_VSCROLL styles.

Real API_Scroll_SetRange (Real Window Handle, Real Mode, Real Min Range, Real Max Range, Real Page Size);

This function sets the range of a window scrollbar.

Setting argument0 to 0 makes you change the horizontal scrollbar, setting it to 1 makes you change the vertical scrollbar.

Return value:
Returns the current scrollbar position.
Real API_Scroll_SetPos (Real Window Handle, Real Mode, Real Position);

This function sets the position of a window scrollbar.

Setting argument0 to 0 makes you change the horizontal scrollbar, setting it to 1 makes you change the vertical scrollbar.

Return value:
Returns the current scrollbar position when succesful or false (0) when failed.
Real API_Scroll_GetPos (Real Window Handle, Real Mode);

This function gets the position of a window scrollbar.

Setting argument0 to 0 makes you get the horizontal scrollbar position, setting it to 1 makes you get the vertical scrollbar position.

Return value:
Returns the current scrollbar position when succesful or false (0) when failed.


Return to help index