ObjectDCL Banner

OnBtnClicked Event

Description

Indicates that the user has clicked the left mouse button on the Button. If the control is a grid control, the user has clicked on the ellipses or pick button.

Parameters

nRow
Integer identifying the row where the mouse was clicked.
nCol
Integer identifying the column where the mouse was clicked.

AutoLISP Syntax

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

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnBtnClicked (nRow [as Integer] nCol [as Integer] /)
     
)

Applies For

EditableGrid.

Example

CopyCode imageCopy Code
; React to the mouse click on the component
(defun c:MyForm_MyControl_OnBtnClicked (nRow nCol /)
     (princ "OnBtnClicked(")
     (princ nRow)
     (princ ",")
     (princ nCol)
     (princ ")\n")
)

See Also

OnClicked, OnClicked (BlockList), OnClicked (CheckBox), OnClicked (ListView), OnClicked (Option),