[Lazarus] CodeTools On Event insert? detect

noreply at z505.com noreply at z505.com
Wed May 24 20:43:10 CEST 2017


I am looking for a way to detect when someone has added an event in the 
ide, for example button1click..

When someone double clicks a button in lazarus it generates code in the 
IDE for the event handler procedure..

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?

It has a way to search the source code for a procedure and enter code, 
but how do you detect when an event is added to the source code?


More information about the Lazarus mailing list