ObjectDCL Banner

OnClicked Event

Description

Indicates that the user has clicked the left mouse button on the control.

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_OnClicked (nRow [as Integer] nCol [as Integer] /)
     
)

Applies For

ListView.

Example

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

See Also

OnBtnClicked, OnClicked, Clicked (BlockList), OnClicked (CheckBox), OnClicked (Option), OnDblClicked, OnRightClick, OnRightDblClick