![]() |



Function |
Declared in: NiNumEditEvents.h |
Declaration
void OnMouseUp( short Button, short Shift, long x, long y);
Description
Generated when you release the mouse on the control.
Parameters
short Button
short Shift
long x
long y
Contains the state of the mouse buttons, which can be any combination of the CNiNumEdit::MouseButton enumeration values. The list below includes valid enumeration values.
- CNiNumEdit::LeftButton - the user pressed the left mouse button.
- CNiNumEdit::RightButton - the user pressed the right mouse button.
- CNiNumEdit::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 CNiNumEdit::ShiftKeys enumeration values. The list below includes valid enumeration values.
- CNiNumEdit::ShiftKey - the user pressed the SHIFT key.
- CNiNumEdit::CtrlKey - the user pressed the CTRL key.
- CNiNumEdit::AltKey - the user pressed the ALT key.
The x position of the mouse when the event occurred.
The y position of the mouse when the event occurred.
See Also
Example
void OnMouseUp(short Button, short Shift, long x, long y) { if ((X > 20 && Y < 100) && (Shift == CNiNumEdit::ShiftKey | CNiNumEdit::AltKey)) { // Your event code here. } }