Links
EControl Form Designer Pro
TDesignerObjTree Class

Object TreeView displays a tree diagram of the visual and nonvisual components you place on a form, data module, or frame.

TDesignerObjTree = class(TCustomDesignerObjTree);

ed_ObjTree

Object TreeView displays the componentsí logical relationships, such as sibling, parent-child (such as a form to a check box), and property relationships (such as a dataset to its FieldDefs properties).Some of these relationships are implicit, such as a dataset component to its properties. You can create other relationships by dragging and dropping one component on top of another, if they have the possibility of a relationship. Or you can drag and drop to change the parental relationships between components. 

 

For example, you can drag:

  • Related components that you can combine, such as a panel and a check box to make a parent-child relationship.
  • Data sources from one table or dataset to another.
  • Databases from one session to another.
  • Datasets (such as tables and queries) from one database to another.

 

Some nodes in the tree diagram are shown with black-and-white icons. These nodes represent "implied" components. 

 

Double-click the item to open component editor if there is any component editor associated with selected component. 

 

When you right-click an item in the tree diagram, you'll see an abridged version of the component's context menu. To access the full menu, right-click on the same component in the form, data module, or frame.

Topic 
Description 
The methods of the TCustomDesignerObjTree class are listed here. 
The properties of the TCustomDesignerObjTree class are listed here. 
The events of the TCustomDesignerObjTree class are listed here. 
TDesignerObjTree Class
Topic 
Description 
The methods of the TDesignerObjTree class are listed here. 
The properties of the TDesignerObjTree class are listed here. 
 
Method 
 
virtual 
 
protected 
 
Property 
 
read only 
 
Event 
TCustomDesignerObjTree Events 
Description 
Called before creation node in object tree. Allows restrict sprigs to be shown and allows changing node text. 
TCustomDesignerObjTree Methods 
Description 
Adds menu items for adding new elements. 
Adds item of type specified at index. 
Returns number of adding types. 
Determines whether selected item maybe deleted. 
Determines whether item may be moved. 
Creates and initializes a TCustomDesignerObjTree instance. 
Deletes selected items. 
Destroys an instance of TCustomDesignerObjTree. 
Initializes the component after the form file has been read into memory. 
Move 
Moves selected item up or down. 
Forwards notification messages to all owned components. 
TDesignerObjTree Class
TDesignerObjTree Class 
Description 
Creates and initializes a TDesignerObjTree instance. 
TCustomDesignerObjTree Properties 
Description 
Provides indexed access to types of added items. 
Allows direct linking to particular designer. In this case object tree will work with objects of the Designer.Root and will work even when designer is not active. 
References root sprig item. 
TDesignerObjTree Class
TDesignerObjTree Class 
Description 
Determines how the control aligns within its container (parent control). 
Specifies how the control is anchored to its parent. 
Specifies whether the nodes in the tree view automatically expand and collapse depending on the selection. 
Specifies which edges of the control are beveled. 
Specifies the cut of the inner bevel. 
Specifies the controlís bevel style. 
Specifies the cut of the outer bevel. 
Specifies the width of the inner and outer bevels. 
Specifies the bi-directional mode for the control. 
Determines whether the tree view control has a border. 
Specifies the width of the controlís border. 
Specifies the delay between when a node is selected and when the OnChange event occurs. 
Specifies the background color of the control. 
Specifies the size constraints for the control. 
Determines whether a control has a three-dimensional (3-D) or two-dimensional look. 
Indicates the image used to represent the mouse pointer when the control is being dragged. 
Specifies whether the control is being dragged normally or for docking. 
Determines how the control initiates drag-and-drop or drag-and-dock operations. 
Controls whether the control responds to mouse, keyboard, and timer events. 
Font 
Controls the attributes of text written on or in the control. 
Determines whether a selected node appears selected when the focus shifts to another control. 
Specifies whether list items are highlighted when the mouse passes over them. 
Determines which image list is associated with the tree view. 
Specifies the amount of indentation in pixels when a list of child nodes is expanded. 
Lists the individual nodes that appear in the tree view control. 
Determines whether the user can select more than one tree node at a time. 
Determines how multiple node selections work. 
Occurs when new node is added. 
Occurs at discrete stages during the painting of the tree view control. 
Occurs at discrete stages during the painting of tree view nodes. 
Occurs whenever the selection has changed from one node to another. 
Occurs when the selection is about to change from one node to another. 
Occurs when the user clicks the control. 
Occurs after a node has been collapsed. 
Occurs when a node is about to be collapsed. 
Occurs when two nodes must be compared during a sort of the nodes in the tree view. 
Occurs when the user right-clicks the control or otherwise invokes the popup menu (such as using the keyboard). 
Occurs when a node in the treeview is about to be created. 
Called before creation node in object tree. Allows restrict sprigs to be shown and allows changing node text. 
Occurs immediately prior to painting the tree view control. 
Occurs immediately prior to painting a node in a tree view control. 
Occurs when the user double-clicks the left mouse button when the mouse pointer is over the control. 
Occurs when a node in the tree view is deleted. 
Occurs when the user drops an object being dragged. 
Occurs when the user drags an object over a control. 
Occurs after the user edits the Text property of a node. 
Occurs when the user starts to edit the Text property of a node. 
Occurs when the dragging of an object ends, either by docking the object or by canceling the dragging. 
Occurs when the dragging of an object ends, either by dropping the object or by canceling the dragging. 
Occurs when a control receives the input focus. 
Occurs when the input focus shifts away from one control to another. 
Occurs after a node is expanded. 
Occurs when a node is about to be expanded. 
Occurs when the tree view looks up the ImageIndex of a node. 
Occurs when the tree view looks up the SelectedIndex of a node. 
Occurs when a user presses any key while the control has focus. 
Occurs when key pressed. 
Occurs when the user releases a key that has been pressed. 
Occurs when the user presses a mouse button with the mouse pointer over a control. 
Occurs when the user moves the mouse pointer while the mouse pointer is over a control. 
Occurs when the user releases a mouse button that was pressed with the mouse pointer over a component. 
Occurs when the user begins to drag a control with a DragKind of dkDock. 
Occurs when the user begins to drag the control or an object it contains by left-clicking on the control and holding the mouse button down. 
Specifies whether the control uses its parentís BiDiMode. 
Determines where a control looks for its color information. 
Determines where a component looks to determine if it should appear three dimensional. 
Determines where a control looks for its font information. 
Determines where a control looks to find out if its Help Hint should be shown. 
Identifies the pop-up menu associated with the control. 
Determines whether the user can edit the node labels. 
Determines whether the Selected property returns nodes that are selected using the right mouse button. 
Specifies whether the entire row of the selected item is highlighted. 
Specifies whether to display plus (+) and minus (-) buttons to the left side of each parent item. 
Determines whether the control displays a Help Hint when the mouse pointer rests momentarily on the control. 
Specifies whether to display the lines that link child nodes to their corresponding parent nodes. 
Specifies whether lines connecting top-level nodes are displayed. 
Determines if and how the nodes in a tree view are automatically sorted. 
Determines which image list to use for state images. 
Indicates the position of the control in its parent's tab order. 
Determines if the user can tab to a control. 
Specifies whether the items in the tree view have tool tips. 
Determines whether the component appears on screen. 
Copyright (c) 2004 - 2011 EControl Ltd.. All rights reserved.
What do you think about this topic? Send feedback!