[Lazarus] CodeTools On Event insert? detect

noreply at z505.com noreply at z505.com
Sat May 27 02:52:44 CEST 2017


On 2017-05-26 04:44, Mattias Gaertner via Lazarus wrote:
> 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.
> 

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


More information about the Lazarus mailing list