ObjectDCL Banner

OnEditLabelItem Event

Description

Indicates that the user has finished editing the item label.

Parameters

sItemText
String identifying the label of the tree item.
Key
String specifying the a unique key in the tree structure identifying the tree node.
Tree Node Handle specifying the tree node uniquely.

AutoLISP Syntax

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

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnEditLabelItem 
                 (sItemText [as String]
                  Key [as String or Tree Node Handle] /)
     
)

Applies For

TreeControl.

Example

CopyCode imageCopy Code
; React to the user finishing editing the label of a tree node
(defun c:MyForm_MyControl_OnEditLabelItem
                 (sItemText Key /)
     (princ "OnEditLabelItem(")
     (princ sItemText)
     (princ ", ")
     (princ Key)
     (princ ")\n")
)

See Also

EditLabel, OnBeginLabelEdit (TreeControl), Tree_CancelEditLabel, Tree_EditLabel,