On Tue, 25 Jan 2011 00:51:07 +0100
Darius Blaszyk <[email protected]> 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

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to