ObjectDCL Banner

OnClicked Event

Description

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

AutoLISP Syntax

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

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnClicked ()
     
)

Applies For

BlockView, DwgPreview, GraphicButton, Grid (Hatch), PictureBox, SlideView, TextButton, TreeControl.

Example

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

See Also

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