![]() |



Function |
Declared in: NiGraph3DEvents.h |
Declaration
void OnPlotAreaMouseMove( short FAR* Button, short FAR* Shift, VARIANT FAR* XNear, VARIANT FAR* YNear, VARIANT FAR* ZNear, VARIANT FAR* XFar, VARIANT FAR* YFar, VARIANT FAR* ZFar);
Description
Generated when you move the mouse over the plot area.
Note: This event is generated only if the CNiGraph.TrackMode property is set to TrackAllEvents or TrackPlotAreaEvents.
Parameters
Contains the state of the mouse buttons, which can be any combination of the CNiGraph3D::MouseButton enumeration values. The following list includes valid enumeration values.
- CNiGraph3D::LeftButton - the user pressed the left mouse button.
- CNiGraph3D::RightButton - the user pressed the right mouse button.
- CNiGraph3D::MiddleButton - the user pressed the middle mouse button.
Contains the state of the SHIFT, CTRL, and ALT keys, which can be any combination of the CNiGraph3D::ShiftKeys enumeration values. The following list includes valid enumeration values.
- CNiGraph3D::ShiftKey - the user pressed the SHIFT key.
- CNiGraph3D::CtrlKey - the user pressed the CTRL key.
- CNiGraph3D::AltKey - the user pressed the ALT key.
The x value of a point under the mouse pointer when the event occurred.
Note: Use CNiVariant to get to the underlying data.
The y value of a point under the mouse pointer when the event occurred.
Note: Use CNiVariant to get to the underlying data.
The z value of a point under the mouse pointer when the event occurred.
Note: Use CNiVariant to get to the underlying data.
The x value of a point under the mouse pointer when the event occurred.
Note: Use CNiVariant to get to the underlying data.
The y value of a point under the mouse pointer when the event occurred.
Note: Use CNiVariant to get to the underlying data.
The z value of a point under the mouse pointer when the event occurred.
Note: Use CNiVariant to get to the underlying data.
See Also
Example
void OnPlotAreaMouseMove(short FAR* Button, short FAR* Shift, VARIANT FAR* XNear, VARIANT FAR* YNear, VARIANT FAR* ZNear, VARIANT FAR* XFar, VARIANT FAR* YFar, VARIANT FAR* ZFar) { if ((CNiVariant(XPos) > 20 && CNiVariant(YPos) < 100) && (*Shift == CNiGraph3D::ShiftKey | CNiGraph3D::AltKey)) // Your event code here. }