ObjectDCL Banner

OnSetFocus Event

Description

Indicates that the control has just gained the user input focus.

AutoLISP Syntax

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

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnSetFocus ()
     
)

Applies For

BlockList, BlockView, ComboBox, DwgList, DwgPreview, EditableGrid, Grid (Hatch), ImageCombo, ListBox, ListView, OptionList, PictureBox, SlideView, TextBox, TreeControl.

Example

CopyCode imageCopy Code
; React to the component that gained the focus
(defun c:MyForm_MyControl_OnSetFocus ()
     (princ "OnSetFocus()\n")
)

See Also

GetFocus, OnKillFocus, Control_SetFocus