[Lazarus] usability: please not focus the messages window, only bring to front

Benito van der Zander benito at benibela.de
Mon May 21 19:19:39 CEST 2012

I had the same problem with jump-to-next-error/ctrl+f8 (on xfce),
and fixed it somewhere else:


But my change is just as ugly as yours

On 05/21/12 17:41, Bernd wrote:
> There must be some explicit SetFocus() calls hidden somewhere deep
> inside the code. I don't know where exactly the code is located that
> * writes the compiler error messages and then (sometimes) sets focus
> * writes the code tools errors and then (sometimes) sets focus
> I would have to figure out how to trace it back with the debugger
> somehow if I figure out where to set the breakpoint (would a
> breakpoint in in TMessagesView.FormActivate() give me a useful stack
> trace?), maybe I have to grep the entire code for SetFocus().
> Now out of sheer desperation I have patched my local copy as follows:
> in msgview.pp for the event OnActivate:
> procedure TMessagesView.FormActivate(Sender: TObject);
> begin
>    SourceEditorManagerIntf.ActiveSourceWindow.SetFocus;
> end;
> Now the message window cannot have the focus anymore at all, it will
> immediately focus back to the source editor whenever something
> activates it but this unknown "something" in the code that is doing
> this is the real root of the evil, I need to find it.
> Bernd
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

More information about the Lazarus mailing list