Executed when a parent item is assigned to the item
Member of Tree Design Interface (PRIM_TREE.ITreeDesign)
|TreeItem||*Input||PRIM_TREE.TreeItem||Reference to the item whose parent was assigned|
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.
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
LANSA Version 15, April 2020