ActionState Property

MiActionState

ActionState can be one of the following MiActionState constants.
miASTATE_NONE (0)
miASTATE_PAN (1)
miASTATE_ZOOM (2) (obsolete)
miASTATE_AnntSELECT (3)
miASTATE_HIDDEN (4)
miASTATE_SELECT (5)

expression.ActionState

*expression   * Required. An expression that returns a MiDocView object.

Remarks

The ActionState property of the viewer control returns or sets both the pointer icon and the functionality that is made available when the user rests the pointer on the document displayed in the control.

  • The miASTATE_NONE option displays the default mouse pointer when the pointer rests on the viewer control.
  • The miASTATE_PAN option displays a hand pointer that allows the user to move the document within the viewer control. The hand pointer changes when the user holds down the mouse button to drag the document.
  • The miASTATE_ZOOM option is obsolete; use the SetScale method to implement zoom functionality. The miASTATE_PAN displays a magnifying glass icon but does not automatically implement resizing functionality. It is not easy to implement the resizing functionality programmatically, because the viewer control does not capture the Click event.
  • The miASTATE_AnntSELECT option displays the default pointer and allows the user to select annotations in the displayed document. (You can add annotations to a document by using the Microsoft® Office Document Imaging 2003 application but not by using the object model.)
  • The miASTATE_HIDDEN option hides the pointer when the pointer rests on the viewer control.
  • The miASTATE_SELECT option displays the default mouse pointer and allows the user to select a portion of the displayed document. Use the ImageSelection or TextSelection property to retrieve the user's selection.

Applies to | MiDocView Object