LEADTOOLS Medical (Leadtools.Medical3D assembly)
LEAD Technologies, Inc

SetAction Method






The action to be assigned
The Mouse event to be associated with the specified action.
Indicates the cells to which the action is applied and when the action is applied.
Assigns the action to a specific mouse button.
Syntax
'Declaration
 
Public Overrides Sub SetAction( _
   ByVal actionType As MedicalViewerActionType, _
   ByVal mouseButton As MedicalViewerMouseButtons, _
   ByVal applyingOperation As MedicalViewerActionFlags _
) 
'Usage
 
Dim instance As Medical3DControl
Dim actionType As MedicalViewerActionType
Dim mouseButton As MedicalViewerMouseButtons
Dim applyingOperation As MedicalViewerActionFlags
 
instance.SetAction(actionType, mouseButton, applyingOperation)
 function Leadtools.Medical3D.Medical3DControl.SetAction( 
   actionType ,
   mouseButton ,
   applyingOperation 
)

Parameters

actionType
The action to be assigned
mouseButton
The Mouse event to be associated with the specified action.
applyingOperation
Indicates the cells to which the action is applied and when the action is applied.
Remarks

An action must be added to a container before it can be assigned to a mouse button. To add an action to a container call Leadtools.MedicalViewer.MedicalViewerBaseCell.AddAction(Leadtools.MedicalViewer.MedicalViewerActionType).

If an action is set to a mouse button that is already used by another action, the new action will overwrite the old one.

Verify that the mouse button can be assigned to the specified action before assigning the button. Do this by calling the Leadtools.MedicalViewer.MedicalViewerBaseCell.IsValidForAction(Leadtools.MedicalViewer.MedicalViewerActionType,Leadtools.MedicalViewer.MedicalViewerMouseButtons,Leadtools.MedicalViewer.MedicalViewerActionFlags) method.

For example, if MedicalViewerMouseButtons.Wheel is passed to the mouseButton parameter and MedicalViewerActionType.MagnifyGlass to the actionType parameter, the method will throw an exception. If the same values are passed as parameters to the Leadtools.MedicalViewer.MedicalViewerBaseCell.IsValidForAction(Leadtools.MedicalViewer.MedicalViewerActionType,Leadtools.MedicalViewer.MedicalViewerMouseButtons,Leadtools.MedicalViewer.MedicalViewerActionFlags) method, the method will return false, indicating that the mouse button cannot be used.
Example
For an example refer to Medical3DObject.RotateX
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Medical3DControl Class
Medical3DControl Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Medical3D requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features