OnMouseUp

3D Graph

Function Group
OnMouseUp() Functions    Prev page: OnMouseMoveNext page: OnPan    
Function Declared in:
NiGraph3DEvents.h

'Declaration' icon -- Shortcut to top of page. Declaration

void OnMouseUp(
    short Button,
    short Shift,
    long X,
    long Y);

'Description' icon -- Shortcut to top of page. Description

Generated when you release the mouse on the control.

Shortcut to top of page. Parameters

short Button

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.
short Shift

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.
long X

The x position of the mouse when the event occurred.

long Y

The y position of the mouse when the event occurred.

'See Also' icon -- Shortcut to top of page. See Also

Shortcut to top of page. Example

void OnMouseUp(short Button, short Shift, long X, long Y) {
   if ((X > 20 && Y < 100) && (Shift == CNiGraph3D::ShiftKey | CNiGraph3D::AltKey)) {
       // Your event code here.
   }
}