lazarus/examples/SynEdit/Completion
martin 0ca8a667db Add some comments
git-svn-id: trunk@42146 -
2013-07-20 08:02:59 +00:00
..
README.txt
SynCompletionSample.ico
SynCompletionSample.lpi examples: update 2013-06-09 14:30:21 +00:00
SynCompletionSample.lpr
SynCompletionSample.res
unit1.lfm SynCompletion: Clean property names 2012-02-20 18:56:54 +00:00
unit1.pas Add some comments 2013-07-20 08:02:59 +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"