ObjectDCL Banner

OnMouseUp Event

Description

Indicates a mouse button was released over this control.

Parameters

nButton
Integer identifying the mask of buttons involved.
nFlags
Integer identifying the state of the mouse buttons.
nX
Integer identifying the X-axis coordinate of the cursor.
nY
Integer identifying the Y-axis coordinate of the cursor.

AutoLISP Syntax

Each control that throws this event has its handler that takes this generic form:

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnMouseUp 
                 (nButton [as Integer] nFlags [as Integer] 
                  nX [as Integer] nY [as Integer] /)
     
)

Applies For

BlockView, DwgPreview, EditableGrid, Grid (Hatch), ListView, PictureBox, SlideView.

Example

CopyCode imageCopy Code
; React to the mouse button being released
(princ c:MyForm_MyControl_OnMouseUp
                 (nButton nFlags nX nY /)
     (princ "OnMouseUp(")
     (princ nButton)
     (princ ", ")
     (princ nFlags)
     (princ ", ")
     (princ nX)
     (princ ", ")
     (princ nY)
     (princ ")\n")
)

See Also

OnMouseDblClick, OnMouseDown