lazarus/examples/SynEdit/Completion
2019-05-06 11:32:58 +00:00
..
README.txt
SynCompletionSample.ico
SynCompletionSample.lpi Examples: Use '/' as path delimiter in project settings. Works also on Windows. Issue #35524. 2019-05-06 11:32:58 +00:00
SynCompletionSample.lpr
SynCompletionSample.res Examples: Remove PathDelim and LaunchingApplication settings from the projects. 2017-05-11 09:04:51 +00:00
unit1.lfm
unit1.pas Examples: Fix compilation when function wrappers in FileUtil are disabled (define NoLazUTF8Wrappers). Clean uses sections. 2015-07-04 23:08: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"