ObjectDCL Banner

OnChanged Event

Description

Indicates that the value of the control has changed.

Parameters

nValue
Integer identifying the resulting value.
nDelta
Integer identifying the difference just applied to the value.

AutoLISP Syntax

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

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnChanged 
                 (nValue [as Integer] nDelta [as Integer] /)
     
)

Applies For

SpinButton.

Example

CopyCode imageCopy Code
; React to the change
(defun c:MyForm_MyControl_OnChanged
                 (nSelIndex /)
     (princ "OnChanged(")
     (princ nValue)
     (princ ",")
     (princ nDelta)
     (princ ")\n")
)