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?
--- readme
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"
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus