QMedical Command Reference
![]() |
![]() ![]() |
QMed_GetAreaScrollOffset(areaRef; hScroll; vScroll; hMaxScroll; vMaxScroll):error | |||
![]() |
areaRef | Longint | QMedical area reference |
![]() |
hScroll | Longint | Horizontal scroll offset (pixels) |
![]() |
vScroll | Longint | Vertical scroll offset (pixels) |
![]() |
hMaxScroll | Longint | Max horizontal scroll offset (pixels) |
![]() |
vMaxScroll | Longint | Max vertical scroll offset (pixels) |
![]() |
error | Longint | Error result |
Returns the scroll offsets of a scrollable QMedical plug-in area.
The QMedical plug-in area is specified by areaRef. If areaRef is not a valid QMedical plug-in area reference, qmed_paramErr is returned.
Parameters hScroll and vScroll receive the horizontal and vertical scroll offsets respectively.
Parameters hMaxScroll and vMaxScroll receive the maximum possible offsets for the horizontal and vertical scrollbars.
Example
`Center image horizontally and vertically C_LONGINT($error) C_LONGINT($hScroll;$vScroll;$hMaxScroll;$vMaxScroll) $error:=QMed_GetAreaScrollOffset (gAreaRef;$hScroll;$vScroll;$hMaxScroll;$vMaxScroll) If ($error=qmed_noErr) $hScroll:=$hMaxScroll/2 $vScroll:=$vMaxScroll/2 $error:=QMed_SetAreaScrollOffset (gAreaRef;$hScroll;$vScroll) End if |
Related commands
QMed_SetAreaScrollOffset | Changes the scroll offsets of a scrollable QMedical plug-in area |