[Lazarus] SynEdit Code Completion
lazarus at mfriebe.de
Sat Jul 20 09:32:50 CEST 2013
On 20/07/2013 08:14, Mattias Gaertner wrote:
> Maybe you can add some more comments to the example?
There is a readme, that is also displayed in the example manager. It
explains the difference between the 2 completions
The code is very simple (but yes maybe one or 2 comments).
But the problem of the OP seems something else
> Can anyone tell me how I can add a codecompletion (similar to
> CTRL+Space in Lazarus) to my own application? I had a look at the
> example / Synedit / Autocomplete demo, but it was not what I was
> looking for.
Well, if he runs it, the runtime is self-explaining. And it acts 100%
like the IDE. So not sure why that example is not what he is looking for?
Example for SynEdit's auto-completion features.
SynEdit (the editor used by the IDE) provides 2 different
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
If the user typed "Sel", then a list of words beginning with "Sel" may
Replaces the current word/token, with a fixed pre-defined substitution.
If the user typed "IB", the replacement may be "if foo then begin"
More information about the Lazarus