ObjectDCL Banner

OnSelChanged Event

Description

Indicates that the selection has been changed.

Parameters

nSelection
Integer identifying the index of the selected option (0 to n).
sSelText
String identifying the selected option's text.

AutoLISP Syntax

The event handler takes this generic form:

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnSelChanged 
                 (nSelection [as Integer] sSelText [as String] /)
     
)

Remarks

The event is not thrown when the option list selection is cleared.

Applies For

OptionList.

Example

CopyCode imageCopy Code
; React to the change in the selection
(defun c:MyForm_MyControl_OnSelChanged
                 (nSelection sSelText /)
     (princ "OnSelChanged(")
     (princ nSelection)
     (princ ", ")
     (princ sSelText)
     (princ ")\n")
)

See Also

OnSelChanged (ComboBox), OnSelChanged (DwgList), OnSelChanged (EditableGrid), OnSelChanged (CustomFileDlg), OnSelChanged (ImageCombo), OnSelChanged (ListBox), OnSelChanged (MonthPicker), OnSelChanged (TreeControl)