[Lazarus] IDE package interface question

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Jan 25 01:03:56 CET 2011


On Tue, 25 Jan 2011 00:51:07 +0100
Darius Blaszyk <dhkblaszyk at zeelandnet.nl> wrote:

> What I would like to do is to update a listview (in my package) after I click on the source editor. So I need to hook into the source editor's OnClick method and get the procedure/function name, line number and the file name. The last two items will probably be more easy, but what about the first? Is there an interface for the code tools that allows this? How about hooking into the OnClick method of the source editor?

With OnClick I guess you mean left click?
Why only update on click? 
Why not update after every cursor movement on a second idle?

About method name:
maybe you mean something like ide/codetemplatesdl.pas function
CodeMacroProcedureHead.


Mattias




More information about the Lazarus mailing list