lazarus/examples/SynEdit/Completion
martin 6aeddede79 Description for example
git-svn-id: trunk@32958 -
2011-10-18 12:13:09 +00:00
..
README.txt Description for example 2011-10-18 12:13:09 +00:00
SynCompletionSample.ico
SynCompletionSample.lpi Examples, SynCompletion: store session info separately 2011-08-06 17:50:55 +00:00
SynCompletionSample.lpr
SynCompletionSample.res
unit1.lfm Examples, SynEdit, Completion: added sizedrag 2010-11-10 13:50:27 +00:00
unit1.pas Examples, SynEdit, Completion: added sizedrag 2010-11-10 13:50:27 +00:00

Example for SynEdit's auto-completion features.

SynEdit (the editor used by the IDE) provides 2 different auto-completion features:

1) TSynCompletion (The word completion feature used by the IDE)
Displays a drop-down providing a list of completions (or replacements) for the current word. The completions, must be provided, and updated by the application.
If the user typed "Sel", then a list of words beginning with "Sel" may be displayed.


2) TSynAutoComplete
Replaces the current word/token, with a fixed pre-defined substitution.
If the user typed "IB", the replacement may be "if foo then begin"