On 2017-05-26 04:44, Mattias Gaertner via Lazarus wrote:
On Wed, 24 May 2017 13:43:10 -0500
Lars via Lazarus <lazarus@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.


Thanks, I will try. Is it a special Define because it is a new untested feature waiting for approval?
If so I could be a tester
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to