[Lazarus] Code Explorer synchronized with caret position
theo
xpde at theo.ch
Tue Jul 6 16:02:07 CEST 2010
Thanks Mattias
>>/ Am I right, that the prerequisites for this feature are already there?
/
>Yes.
Hmm, I thought it would be relatively easy.
I don't know anything about code explorer, but tried this:
In CodeExplorer.pas:
To get some event, I started here:
procedure TCodeExplorerView.Refresh(OnlyVisible: boolean);
There I'm calling "SelectSourceEditorNode" which looks as if it would do
what I intend.
Btw. This method is never called throughout the Project afaics.
This one is calling "SelectCodePosition" which is calling
"FindCodeTVNodeAtCleanPos"
It passes all checks, but in the last method, this code:
AVLNode:=fCodeSortedForStartPos.FindLeftMostKey(@KeyPos,
TListSortCompare(@CompareStartPosWithViewNodeData));
returns always nil for AVLNode.
Thank you for any comment.
Best regards
Theo
More information about the Lazarus
mailing list