ObjectDCL Banner

OnItemExpanded Event

Description

Indicates that the user expanded a node of the TreeControl.

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_OnItemExpanded 
                 (sItemText [as String]
                  Key [as String or Tree Node Handle] /)
     
)

Applies For

TreeControl.

Example

CopyCode imageCopy Code
; React to the tree node that was expanded
(defun c:MyForm_MyControl_OnItemExpanded
                 (sItemText Key /)
     (princ "OnItemExpanded(")
     (princ sItemText)
     (princ ", ")
     (princ Key)
     (princ ")\n")
)

See Also

OnItemExpanding