You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Tree Design Interface - OnItemGotParent Method
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

All Component Classes
Technical Reference

  • No labels