ObjectDCL Banner

OnSelChanging Event

Description

Indicates that the selection is about to be changed.

Parameters

nSelIndex
Integer identifying the index of the selected tab or item.

AutoLISP Syntax

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

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnSelChanging 
                 (nSelIndex [as Integer] /)
)

Applies For

TabControl.

Example

CopyCode imageCopy Code
; React to the selection about to change
(defun c:MyForm_MyControl_OnSelChanging
                 (nSelIndex /)
     (princ "OnSelChanging(")
     (princ nSelIndex)
     (princ ")\n")
)

See Also

OnChanged