SetMouseButtonAction Method (ILEADWindowLevelAction)

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.

See Also

Elements:

Cursor Property, Change Property, CircularMouseMove Property, StartColor Property, EndColor Property, Use Property, SetKeyboardAction Method, ActivateAction Method, Key Property, Modifier Property, SetAction Method, GetAction Method, GetKeyboardAction Method, Width Property, Center Property, FillType Property.

Topics:

Image Viewer: Window Level Action