![]() |



Function |
Declared in: NiGraphEvents.h |
Declaration
void OnPlotAreaMouseUp( short FAR* Button, short FAR* Shift, VARIANT FAR* XPos, VARIANT FAR* YPos);
Description
Generated when you release the mouse over the plot area.
Notes:
1. These events generate only if CNiGraph.TrackMode is TrackAllEvents or TrackPlotAreaEvents.
2. If you have multiple y axes, the y axis for the template plot is used. The point returned is the point clicked on, not the nearest point on a plot.
Parameters
Contains the state of the mouse buttons, which can be any combination of the CNiGraph::MouseButton enumeration values. The following list includes valid enumeration values.
- CNiGraph::LeftButton - the user pressed the left mouse button.
- CNiGraph::RightButton - the user pressed the right mouse button.
- CNiGraph::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 CNiGraph::ShiftKeys enumeration values. The following list includes valid enumeration values.
- CNiGraph::ShiftKey - the user pressed the SHIFT key.
- CNiGraph::CtrlKey - the user pressed the CTRL key.
- CNiGraph::AltKey - the user pressed the ALT key.
Variant containing the x position of the cursor.
Note: Use CNiVariant to get to the underlying data.
Variant containing the y position of the cursor.
Note: Use CNiVariant to get to the underlying data.
See Also
Example
void OnPlotAreaMouseUp(short FAR* Button, short FAR* Shift, VARIANT FAR* XPos, VARIANT FAR* YPos) { if ((CNiVariant(XPos) > 20 && CNiVariant(YPos) < 100) && (*Shift == CNiGraph::ShiftKey | CNiGraph::AltKey)) // Your event code here. }