Happens when the user releases the middle mouse button (after holding it down) while the mouse pointer is within the inner area of a window.


Args

ARG(1) indicates whether the CTRL and/or SHIFT keys are being held down, and/or whether the left and/or right mouse buttons are also down. You can use BIT's TEST operation to ascertain which as so:

IF BIT(ARG(1), 1) THEN SAY "Right button pressed"
IF BIT(ARG(1), 0) THEN SAY "left button pressed"
IF BIT(ARG(1), 2) THEN SAY "SHIFT key pressed"
IF BIT(ARG(1), 3) THEN SAY "CTRL key pressed"
ARG(2) is the X position where the mouse pointer is currently located (referenced from the upper left corner of the window's inner area), and ARG(3) is the Y position.


Notes

If the mouse is captured by some window, then the event happens only with the window capturing the mouse.

See also MBUTTONDOWN, NCMBUTTONUP.