Re: [Lazarus] IDE package interface question

2011-01-31 Thread dhkblaszyk
CodeTool.ExtractProcHead(ProcNode,Attributes); Perfect, thanks! -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] IDE package interface question

2011-01-31 Thread Mattias Gaertner
On Tue, 01 Feb 2011 00:13:50 +0100 wrote: > On Mon, 31 Jan 2011 23:35:11 +0100, Mattias Gaertner > wrote: > >> if AUnit <> CachedUnit then > >> begin > > > > Maybe the above if is the cause. Remove it. > > I found the problem. The line and column number were switched. > Therefore Clea

Re: [Lazarus] IDE package interface question

2011-01-31 Thread dhkblaszyk
On Mon, 31 Jan 2011 23:35:11 +0100, Mattias Gaertner wrote: if AUnit <> CachedUnit then begin Maybe the above if is the cause. Remove it. I found the problem. The line and column number were switched. Therefore CleanPos was bogus. Now one last problem, how to find the method name? Pr

Re: [Lazarus] IDE package interface question

2011-01-31 Thread Mattias Gaertner
On Mon, 31 Jan 2011 22:38:54 +0100 Darius Blaszyk wrote: > > Martin / Mattias, > > Thanks for the help. I finally used RegisterChangeEvent and it works fine. > Unfortunately I have a another problem now. After modifying the caret > position the event is fired and from the caret position I nee

Re: [Lazarus] IDE package interface question

2011-01-31 Thread Darius Blaszyk
Martin / Mattias, Thanks for the help. I finally used RegisterChangeEvent and it works fine. Unfortunately I have a another problem now. After modifying the caret position the event is fired and from the caret position I need to resolve the method name. I have looked at how this is done ./exam

Re: [Lazarus] IDE package interface question

2011-01-24 Thread Martin
On 25/01/2011 00:18, Martin wrote: At this point I noticed your next post. RegisterStatusChangedHandler in synedit => see what fpdoc edit does ide\fpdoceditwindow.pas line 297 -- ___ Lazarus mailing list Lazarus@lists.lazarus.f

Re: [Lazarus] IDE package interface question

2011-01-24 Thread Martin
On 24/01/2011 23:51, Darius Blaszyk 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 p

Re: [Lazarus] IDE package interface question

2011-01-24 Thread Darius Blaszyk
On Jan 25, 2011, at 1:03 AM, Mattias Gaertner wrote: > On Tue, 25 Jan 2011 00:51:07 +0100 > Darius Blaszyk 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 th

Re: [Lazarus] IDE package interface question

2011-01-24 Thread Mattias Gaertner
On Tue, 25 Jan 2011 00:51:07 +0100 Darius Blaszyk 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

Re: [Lazarus] IDE package interface question

2011-01-24 Thread Darius Blaszyk
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 firs

Re: [Lazarus] IDE package interface question

2011-01-24 Thread Mattias Gaertner
On Tue, 25 Jan 2011 00:23:44 +0100 Darius Blaszyk 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 posi

[Lazarus] IDE package interface question

2011-01-24 Thread Darius Blaszyk
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. Regards, Darius -- ___ Lazarus mailing list Lazar