AnnRestrictCursor method (Annotation Control)

C++ Builder example

Delphi example

 

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:

image\sqrblit.gif To restrict the cursor to the bounds of the container, pass 0 for left, top, right and bottom and 0 for dX and dY.

image\sqrblit.gif To restrict the cursor to a box around dX, dY (and the container), pass left, top, right, bottom, dX and dY.

image\sqrblit.gif 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.

image\sqrblit.gif To do the above, and also restrict to the client area, set bRestrictClient to TRUE.

See Also

Elements:

AnnLeftPreviousClip property, AnnTopPreviousClip property, AnnRightPreviousClip property, AnnBottomPreviousClip property, AnnCreateItem method, AnnCut method, AnnGetContainer method, AnnGetTopContainer method, AnnInsert method, AnnRemove method

Topics:

Annotations:Object Manipulation

 

Annotations (Document/Medical only): Implementing Automation

 

Annotations (Document/Medical only): Creating and Deleting Annotations

 

Displaying and Manipulating Annotation Objects