Tree Design Interface (PRIM_TREE.ITreeDesign)
Interface allowing Tree to communicate with its design instances
Ancestors - None

Details


The Tree design interface is a specific requirement for all Tree design reusable parts.
It provides a set of methods that can be executed by the containing Tree control, allowing the reusable part to respond to changes in the Tree.

Example


Below is a simple Tree item that populates labels with the 2 fields that are mapped in when an entry is added via *ListFields. The values are used to populate labels on the design when the OnAdd method is executed.
If an image is assigned to the item, the OnItemImageChanged method is executed, and the image for the item can be used on the design.
If the item's parent is set the item indents by 16 pixels for each level of nesting.
Function Options(*DIRECT)
Begin_Com Role(*EXTENDS #PRIM_PANL *implements #Prim_Tree.iTreeDesign *ListFields #ListFields) Displayposition(1) Height(52) Layoutmanager(#Table) Left(0) Tabposition(1) Top(0) Width(301)