This unit defines a tree view control

. A tree view displays items in an indented outline. The control provides buttons that allow nodes to be expanded and collapsed. You can include icons with items' text labels and display different icons to indicate whether a node is expanded or collapsed.

Represents a window that displays a hierachy list of items

. Examples of such hierachies can be the headings in a document, the entries in a index, or the files and directories on a disk.

Use TfpgTreeView to add an expanding and contracting outline to a form. Each node in a tree view control consists of a label and a number of optional bitmapped images. Each node can have a list of subnodes associated with it. By clicking on a node, the user can expand or collapse the associated list of subnodes.

There is basic column support, but this is still very experimental.
Collapses all the nodes within a tree view control . Call FullCollapse to hide all the nodes in the tree view except those at the first level. All node buttons will change from '-' to '+'. Expands all nodes within the tree view control . Call FullExpand to display all the nodes in the tree view. All node buttons will change from '+' to '-'. Moves the selection to the previous node up the tree Moves the selection to the next node down the tree Return the next node after ANode . This function will step into child nodes as well, to return the correct node. It works on the actual nodes in the tree, and not just the visible nodes in the tree. Return the previous node starting from ANode . This function will step into child nodes as well, to insure it returns the correct node. It works on the actual nodes in the tree, and not just on the visible nodes. Return the next visible node starting from ANode . This works exactly the same as NextNode function, but this time it only acts on nodes that are visible. Return the previous visible node starting from ANode . This works exactly the same as PrevNode function, but this time it only acts on nodes that are visible. This gives you read access to the internal Font resource . If you want to change the font used in the tree view, use the FondDesc property instead. Returns the first node of the tree where all other nodes branch from . This node is not a visible node, and is the internal node all other nodes in the tree branches from. Specifies the selected node in the tree view

. Read Selection to access the selected node of the tree view. If there is no selected node, the value returned is nil.

Set Selection to set the node in the tree view. If the new node is a child of a collapsed node, the tree view will automatically expand the nodes and scroll the new selected node into view. As the parent nodes are expanded, so the tree view will trigger the OnExpand event as well.

Refers to the image list associated with the tree view . Use the ImageList to provide a customised list of bitmaps that can be displayed with the node's text. Use the node's ImageIndex property to specify the bitmap that must be painted next to the node's text. Identifies the pop-up menu associated with the tree view . Assign a value to PopupMenu to make a popup-menu appear when the user selects the control and clicks the right mouse button. Is the default with of columns displayed in the tree view

.

There is basic column support, but this is still very experimental.
Specifies the font used for the tree view . You can specify the font name and size in the format fontname-size:attributes, or you can use any of the font aliases that has been setup. A font alias is a short name for some specific font, font size and attribute all in one. A font alias is in the format #aliasname.