ObjectDCL Banner

OnDeleteItem Event

Description

Indicates that an item in the control as been deleted.

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

Applies For

TreeControl.

Example

CopyCode imageCopy Code
; React to the drag-and-drop operation ending in the control originating from
; another ObjectDCL control
(defun c:MyForm_MyControl_OnDeleteItem
                 (sItemText Key /)
     (princ "OnDeleteItem(")
     (princ sItemText)
     (princ ", ")
     (princ Key)
     (princ ")\n")
)