Editor don't Focus after Findialog .... lazarus / 9-Editor ---------------------------------------------------------------------- SunyD · 2010-07-24 15:40 When you use manualdock-component or anchor-docking and you use finddialog or other dialog the source editor loses focus and the tabbuttons from source editor gets the focus. To solve this problem you must edit lazarus/ide/sourceeditor.pp: in Code: [Select]procedure TSourceEditor.StartFindAndReplace(Replace:boolean); ..     InputHistories.FindOptions:=LazFindReplaceDialog.Options*SaveOptions;     InputHistories.FindAutoComplete:=LazFindReplaceDialog.EnableAutoCo mplete;     if DlgResult = mrCancel then begin       FocusEditor; //<------ ADD THIS LINE       exit;     //debugln('TSourceEditor.StartFindAndReplace B LazFindReplaceDialo g.FindText="',dbgstr(LazFindReplaceDialog.FindText),'"');     end;     Replace:=ssoReplace in LazFindReplaceDialog.Options; ...   end;//End try-finally   FocusEditor; //<------ ADD THIS LINE BEFORE END OF PROCEDURE end; and in: Code: [Select]function TSourceEditor.DoFindAndReplace: integer; ...   FocusEditor; //<------ ADD THIS LINE BEFORE END OF PROCEDURE end; Maybe the makers of lazarus can modify the sources then we don't need edit sourceeditor.pp everytime after downloading new lazarus version. Anchor-Docking works great! Thanks guys. http://wiki.lazarus.freepascal.org/Anchor_Docking