
Executed when a parent item is assigned to the item
Member of Tree Design Interface (PRIM_TREE.ITreeDesign)
Parameters
Name | Type | Data Type | Description |
---|---|---|---|
TreeItem | *Input | PRIM_TREE.TreeItem | Reference to the item whose parent was assigned |
Details
The OnItemGotParent method is executed when the ParentItem property of the list item is set. Tree will hide and show items as required. The user is responsible for any indenting nested items.
Example
Redefine the method in the design reusable part. In this example the item is indented on the number of levels.
Mthroutine Name(OnItemGotParent) Help('Executed when the item "Parent" property is set') Options(*redefine) #TreeItem.MarginLeft := (#TreeItem.Level - 1) * 16 Endroutine
See also
LANSA Version 15, April 2020