SetMouseButtonAction method (ILEADOwnerAction)

Visual Basic example

Visual C++ example

 

Syntax

short SetMouseButtonAction (MouseButtonConstants MouseButton, long lFlags);

Overview

Refer to Using the Image Viewer

Remarks

(Medical Imaging Suite) Specifies the action’s mouse buttons.

The action must be activated inside a container before it can be assigned to a mouse button by calling ActivateAction method.

If the action is set to a mouse button that is already used by another action within the container this action will overwrite the old one. For example, if you set a mouse button for an owner action object in the container, and then set the same mouse button for a scale action object in the same container, the mouse button will cause a scale action within the container.

Actions can also be associated with keystroke combinations. To assign the action to a keystroke combination, set the Key and Modifier properties and call the SetKeyboardAction method.

If the action associated to the owner action is applied (mouse, or keyboard action) the control will fire the related events KeyDown, KeyUp, MouseMove, MouseDown, MouseUp, or MouseWheel.

See Also

Elements:

Cursor Property, Change Property, CircularMouseMove Property, Use Property, SetKeyboardAction Method, ActivateAction Method, Key Property, Modifier Property, SetAction Method, GetAction Method, GetKeyboardAction Method.

Topics:

Image Viewer: Owner Action