Links
EControl Syntax Editor SDK
TCustomSyntaxTreeView Class

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

TCustomSyntaxTreeView = class(TCustomTreeView, IUnknown, IecTextClient, IecSyntMemoClient, IecSyntClient);

ecSyntTree

Using TCustomSyntaxTreeView 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. 
 
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. 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!