[Lazarus] Source editor navigation

Martin lazarus at mfriebe.de
Sun Nov 13 12:24:02 CET 2011


On 13/11/2011 07:23, Hans-Peter Diettrich wrote:
> Martin schrieb:
>> Do you click (right click / popup) on the actual tab? or on the text 
>> of the source editor?
>
> On the text in the active editor, of course :-)

Strange..., but no idea.

Maybe another window you have open (like fpdoc, code explorer ,... or a 
package you have installed...
Docked or undocked IDE?

What version of Winodws

>
> Editor tabs are another (or related?) problem, sometimes the Focus is 
> set to the tabs instead of the text. Perhaps this is reproducible:
>
> Navigate from a method declaration to the implementation, in an 
> include file. Save, leave and restart the IDE. The caret should be in 
> the include file again. Now navigating to the declaration shows the 
> correct unit but makes the caret disappear, and further cursor 
> movements (up/down...) select another tab.

Unfortunately not happening here. I I restart the IDE, it makes the main 
IDE bar active, So I first need to set focus to an editor, but then it 
behaves....
Same questions as above...

I know that used to happen, but I haven't had it for some years now.

>
> One more, possibly related: The Code Explorer does not always follow 
> the active editor window. Make it display the unit name in its 
> Caption, for easier verification. Then activate a different editor 
> window (click into the text), and the Code Explorer doesn't react. I 
> often have to switch to another tab (of the same window), before Code 
> Explorer notices the changed unit.

Then maybe internally the ActiveWindow did not change? That would 
explain the wrong "locked" window.

Maybe some focus or activate message reaches the wrong editor at the 
wrong time?

Try compiling with VerboseFocus defined, and watch the console 
output/log file





More information about the Lazarus mailing list