Links
EControl Syntax Editor SDK
TSyntTextSource Class

Implements shared text and syntax source for syntax editors.

TSyntTextSource = class(TComponent, IecSyntClient);

ecSyntAnal

Use TSyntTextSource to share single text between several editors. In this case only single copy of text will be stored in memory and editing text in one editor will cause updating all other editors, so they will be synchronized. 

 

You can also share syntactical analyzer between several editors. To do this you have to assign property TSyntTextSource.SyntaxAnalyzer and reset property TCustomSyntaxMemo.SyntaxAnalyzer to nil. Using single syntax analyzer will save more time and memory, because there will be signle SyntObj.

Topic 
Description 
The methods of the IecSyntClient class are listed here. 
TSyntTextSource Class
Topic 
Description 
The methods of the TSyntTextSource class are listed here. 
The properties of the TSyntTextSource class are listed here. 
 
Method 
 
virtual 
 
protected 
 
Property 
 
read only 
IecSyntClient Methods 
Description 
Called when syntax analysis is finished. 
Called when styles of syntax analyzer is changed. 
TSyntTextSource Class
TSyntTextSource Class 
Description 
Adds client. 
Converts (X, Y) position of the caret to zero-based text position. 
Creates and initializes a TSyntTextSource instance. 
Destroys an instance of TSyntTextSource. 
Called when syntax analysis is finished. 
Called when styles of syntax analyzer is changed. 
Returns length of the line. 
Removes client. 
Returns caret position for the given text position. 
TSyntTextSource Class
TSyntTextSource Class 
Description 
Contains text. 
Determines whether the user can change the text of the all syntax memo controls linked to the text source. 
Associated syntactical analyzer. 
Provides access to syntax objects. 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!