[Lazarus] CodeTools On Event insert? detect

noreply at z505.com noreply at z505.com
Tue May 30 03:50:37 CEST 2017


Mattias, I'm still having issues figuring out exactly what Donald Z.'s 
code does and how to use it, but is there even a way to "hook" the ide 
event insertion currently? i.e. if you throw a Button on a form and 
double click it, I want to hook into that, and insert code immediately 
after the event has been inserted into the ide text edit window..

If this feature is currently not implemented I can work on a patch today 
that does it, however I don't want to work on a patch if this feature 
already exists and I just can't find it.

Something like: OnAfterEventInsert codetools/lazintf trigger

- User adds button 1 to form
- user double clicks button 1
- code is inserted inbetween begin/end automatically

I think the templates may help this but is there really a hook like this 
in code tools where you can hook into the events inserted into the IDE 
when a user double clicks a button/widget or double clicks the event in 
the object inspector?


More information about the Lazarus mailing list