[Lazarus] CodeTools On Event insert? detect
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri May 26 11:44:12 CEST 2017
On Wed, 24 May 2017 13:43:10 -0500
Lars via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
>[...]
> I want to intercept/detect this, and add
>
> SomeCode();
>
> between the begin/end of the event, i.e. on button 1 click.
>
> Does codetools provide some way to do it?
Donald Ziesig added templates to alter the inserted code snippets.
Please update svn, compile the IDE with
-dEnableCodeCompleteTemplates and restart it.
Read the header notes in
lazarus/components/codetools/codecompletiontemplater.pas
Default templates are defined in
components/codetools/codecompletiontemplates.xml
You can choose your own template file in Tools / Options /
Codetools / Code creation / Template file.
Mattias
More information about the Lazarus
mailing list