ObjectDCL Banner

OnSelChanged Event

Description

Indicates that the selection has been changed.

Parameters

nSelection
Integer identifying the selected entry. ImageComboBox_GetCurSel returns the same value.
sSelText
String identifying the selection by its text.

AutoLISP Syntax

The event handler takes this generic form:

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

Applies For

ImageCombo.

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 (ListBox), OnSelChanged (MonthPicker), OnSelChanged (OptionList), OnSelChanged (TreeControl)