AnnRestrictCursor method (Annotation Control)
Builder Syntax |
int AnnRestrictCursor(HANNOBJECT hContainer, int nLeft, int nTop, int nRight, int nBottom, double dX, double dY, bool bRestrictClient) |
Delphi Syntax |
AnnRestrictCursor (hContainer: HANNOBJECT; nLeft: L_INT; nTop: L_INT; nRight: L_INT; nBottom: L_INT; dX: L_DOUBLE; dY: L_DOUBLE; bRestrictClient: Boolean): L_INT |
Overview |
Refer to Implementing Annotations. |
Remarks
(Document/Medical only) Restricts the mouse cursor in conjunction with annotation objects. It should be used when creating custom annotation objects.
Calling this method always restricts the mouse cursor to the annotation container. However, depending on the arguments passed, the mouse cursor can be restricted further.
This method can be used in the following ways:
To restrict the cursor to the bounds of the container, pass 0 for left, top, right and bottom and 0 for dX and dY.
To restrict the cursor to a box around dX, dY (and the container), pass left, top, right, bottom, dX and dY.
To restrict the cursor to a box (not centered around a point), pass pass left, top, right and bottom and pass 0 for dX and dY.
To do the above, and also restrict to the client area, set bRestrictClient to TRUE.
See Also