QPix Command Reference
![]() |
![]() ![]() |
QPx_SetAreaScrollOffset(areaRef; hScroll; vScroll):error | |||
![]() |
areaRef | Longint | QPix area reference |
![]() |
hScroll | Longint | Horizontal scroll offset (pixels) |
![]() |
vScroll | Longint | Vertical scroll offset (pixels) |
![]() |
error | Longint | Error result |
Changes the scroll offsets of a scrollable QPix plug-in area. Use this command for procedural positionong the scrollbar thumbs of the area.
The QPix plug-in area is specified by areaRef. If areaRef is not a valid QPix plug-in area reference, qpx_paramErr is returned.
Parameters hScroll and vScroll specify the horizontal and vertical scroll offsets respectively. Both values range from zero to the maximum scroll offsets that can be retrieved using QPx_GetAreaScrollOffset.
Example
`Reset scrollbars to 0, 0 C_LONGINT($error) $error:=QPx_SetAreaScrollOffset (gQPixArea;0;0) |
Related commands
QPx_GetAreaScrollOffset | Returns the scroll offsets of a scrollable QPix plug-in area |