Links
EControl Syntax Editor SDK
TSyntaxTreeView Class

Shows text ranges structure in the memo that is specified in SyntaxMemo property.

TSyntaxTreeView = class(TCustomSyntaxTreeView);

ecSyntTree

Using TSyntaxTreeView you can easily navigate through the text. To specify action when user double clicks on a node use ClickAction property. 

To synchronize syntax tree with the caret position of the syntax memo set AutoSynchronize property to True. In this mode after changing caret position node that corresponds to the nearest text range will be selected in the tree view. 

To make several tree view with different content use GroupIndex property.

Topic 
Description 
The methods of the IecSyntClient class are listed here. 
IecSyntMemoClient Interface
Topic 
Description 
The methods of the IecSyntMemoClient class are listed here. 
IecTextClient Interface
Topic 
Description 
The methods of the IecTextClient class are listed here. 
TCustomSyntaxTreeView Class
Topic 
Description 
The methods of the TCustomSyntaxTreeView class are listed here. 
The properties of the TCustomSyntaxTreeView class are listed here. 
The events of the TCustomSyntaxTreeView class are listed here. 
TSyntaxTreeView Class
Topic 
Description 
The properties of the TSyntaxTreeView class are listed here. 
 
Method 
 
protected 
 
virtual 
 
Property 
 
Event 
TCustomSyntaxTreeView Class
TCustomSyntaxTreeView Class 
Description 
Occurs before processing text range for creating new associated tree node. 
Occurs when new Node is created for the text range Range. 
Occurs periodically during updating syntax tree content. 
Occurs when syntax tree is fully updated. 
Called when new group tree node was created for the given text range. 
Called when selecting parent node for the item Node and given text range. 
IecSyntClient Methods 
Description 
Called when syntax analysis is finished. 
Called when styles of syntax analyzer is changed. 
IecSyntMemoClient Interface
IecSyntMemoClient Interface 
Description 
Is called when caret position is changed. 
IecTextClient Interface
IecTextClient Interface 
Description 
Called after text have been changed. 
TCustomSyntaxTreeView Class
TCustomSyntaxTreeView Class 
Description 
Adds new tree Node. This method should be used instead of TTreeNodes.AddChild method. 
Creates new instance of TSyntNodeRange, links it and stores it in indexes (lists). 
Called before processing text range for creating new associated tree node. 
Removes all items in the tree view. 
Creates and initializes a TCustomSyntaxTreeView instance. 
Performs action specified by the ClickAction property. 
Destroys an instance of TCustomSyntaxTreeView. 
Called when new group tree node was created for the given text range. 
Called when new item tree node was created for the given text range. 
Called when selecting parent node for the item Node and given text range. 
Called when syntax tree is fully updated. 
Looks for child tree node. If Prn is nil searches within root nodes list. 
Performs action specified by TCustomSyntaxTreeView.ClickAction Property for selected node. 
Updates syntax tree items. 
TCustomSyntaxTreeView Class
TCustomSyntaxTreeView Class 
Description 
Specifies whether all expanded nodes except parents of selected tree node should be automatically collapsed. 
Sets tree view to synchronous mode with the caret position of the syntax memo. 
Specifies action when user double clicks on selected tree node. 
Specifies processing of double click on node. 
Specifies group index to filter text ranges (items). 
Lists the individual nodes that appear in the tree view control. 
Specifies maximal number of nodes levels. 
Links TreeView control to syntax memo. 
TSyntaxTreeView Class
TSyntaxTreeView Class 
Description 
Determines how the control aligns within its container (parent control). 
Specifies how the control is anchored to its parent. 
Specifies whether all expanded nodes except parents of selected tree node should be automatically collapsed. 
Specifies whether the nodes in the tree view automatically expand and collapse depending on the selection. 
Sets tree view to synchronous mode with the caret position of the syntax memo. 
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 action when user double clicks on selected tree node. 
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. 
Specifies group index to filter text ranges (items). 
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. 
Specifies maximal number of nodes levels. 
Determines whether the user can select more than one tree node at a time. 
Determines how multiple node selections work. 
Occurs before processing text range for creating new associated tree node. 
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 when user cancels editing of a nodeís Caption. 
Occurs when an attempt is made to resize the control. 
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. 
Adjust resize constraints. 
Occurs when the user right-clicks the control or otherwise invokes the popup menu (such as using the keyboard). 
Called when new group tree node was created for the given text range. 
Occurs when a node in the treeview is about to be created. 
Occurs when new Node is created for the text range Range. 
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 periodically during updating syntax tree content. 
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 immediately after the control is resized. 
Called when selecting parent node for the item Node and given text range. 
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. 
Occurs when syntax tree is fully updated. 
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. 
Links TreeView control to syntax memo. 
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. All rights reserved.
What do you think about this topic? Send feedback!