ObjectDCL Banner

OnClicked Event

Description

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

Parameters

nValue
Integer identifying the state of the option: 0 for unchecked and 1 for checked.

AutoLISP Syntax

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

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnClicked (nValue [as Integer] /)
     
)

Remarks

The value is actually one of the MFC CButton::GetCheck() method's return values.

Applies For

Option.

Example

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

See Also

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