ObjectDCL Banner

OnItemExpanding Event

Description

Indicates that the user is expanding 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_OnItemExpanding 
                 (sItemText [as String]
                  Key [as String or Tree Node Handle] /)
     
)

Applies For

TreeControl.

Example

CopyCode imageCopy Code
; React to the tree node being expanded
(defun c:MyForm_MyControl_OnItemExpanding
                 (sItemText Key /)
     (princ "OnItemExpanding(")
     (princ sItemText)
     (princ ", ")
     (princ Key)
     (princ ")\n")
)

See Also

OnItemExpanded