ComponentOne Chart 8.0 for ActiveX
Determining Action Mappings

 

Determining Action Mappings

To determine which action is mapped to a particular Microsoft Windows message, use the Item property, which is defined by the ActionMaps collection. For example, the following statement returns the action performed when the left mouse button is clicked:

Dim LeftMouse As Object

...

Set LeftMouse = Chart3D1.ActionMaps.Item WM_LBUTTONDOWN, 0, 0

An exception is generated if no action is mapped to a particular message.

By default, the following action maps are defined:

WM_MBUTTONDOWN, MK_MBUTTON, 0

oc3dActionModifyStart (start rotation)

WM_MBUTTONDOWN, MK_MBUTTON+MK_SHIFT, 0

oc3dActionModifyStart (start translation)

WM_MBUTTONDOWN, MK_MBUTTON+MK_CONTROL, 0

oc3dActionModifyStart (start scaling)

WM_LBUTTONDOWN, MK_LBUTTON+MK_CONTROL, 0

oc3dActionZoomStart (start zooming)

WM_KEYDOWN, MK_MBUTTON, 'X'

oc3dActionRotateXAxis (specify that rotation is to be about the X-axis)

WM_KEYDOWN, MK_MBUTTON, 'Y'

oc3dActionRotateYAxis (specify that rotation is to be about the Y-axis)

WM_KEYDOWN, MK_MBUTTON, 'Z'

oc3dActionRotateZAxis (specify that rotation is to be about the Z-axis)

WM_KEYDOWN, MK_MBUTTON, 'E'

oc3dActionRotateEye (specify that rotation is to be about the eyepoint)

WM_KEYDOWN, MK_MBUTTON, 'N'

oc3dActionRotateFree (specify unconstrained rotation)

WM_MOUSEMOVE, MK_MBUTTON, 0

oc3dActionRotate

WM_MOUSEMOVE, MK_MBUTTON + MK_SHIFT, 0

oc3dActionTranslate

WM_MOUSEMOVE, MK_MBUTTON + MK_CONTROL, 0

oc3dActionScale

WM_MOUSEMOVE, MK_LBUTTON + MK_CONTROL, 0

oc3dActionZoomUpdate

WM_MBUTTONUP, 0, 0

oc3dActionModifyEnd (end rotation)

WM_MBUTTONUP, MK_SHIFT, 0

oc3dActionModifyEnd (end translation)

WM_MBUTTONUP, MK_CONTROL, 0

oc3dActionModifyEnd (end scaling)

WM_LBUTTONUP, MK_CONTROL, 0

oc3dActionZoomEnd (end zooming)

WM_KEYDOWN, 0, 'R'

oc3dActionReset

WM_RBUTTONDOWN, MK_MBUTTON,0

oc3dActionProperties (display Property Pages)

WM_KEYDOWN, MK_LBUTTON, VK_ESCAPE

oc3dActionZoomCancel

WM_KEYDOWN, MK_MBUTTON, VK_ESCAPE

oc3dActionModifyCancel

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback