Tree Design Interface - OnItemGotParent Method

Executed when a parent item is assigned to the item

Member of Tree Design Interface (PRIM_TREE.ITreeDesign)

Parameters

NameTypeData TypeDescription
TreeItem*InputPRIM_TREE.TreeItemReference 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

All Component Classes

Technical Reference

Febuary 18 V14SP2