ObjectDCL Banner

OnClicked Event

Description

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

Parameters

nIndex
Integer identifying the index of the item 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 (nIndex [as Integer] /)
     
)

Applies For

BlockList.

Example

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

See Also

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