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?
Regards, Darius On Jan 25, 2011, at 12:44 AM, Mattias Gaertner wrote: > On Tue, 25 Jan 2011 00:23:44 +0100 > Darius Blaszyk <[email protected]> wrote: > >> Hi, >> >> How can I get the source filename, method name and position on clicking the >> source editor through the ideintf? I would like to have this so I can make >> my IDE package (fpprofiler) context sensitive. > > Source filename and position: > http://wiki.lazarus.freepascal.org/Extending_the_IDE#Source_Editor > > What do you mean with method name? Of the identifier at cursor or the > method name of the current method body? > > Mattias > > -- > _______________________________________________ > Lazarus mailing list > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
