UPD: Resize file panels only once after construction

This commit is contained in:
Alexander Koblov 2017-04-16 12:02:43 +00:00
commit b395ca4368

View file

@ -742,6 +742,7 @@ type
public
constructor Create(TheOwner: TComponent); override;
procedure AfterConstruction; override;
Function ActiveFrame: TFileView; // get Active frame
Function NotActiveFrame: TFileView; // get NotActive frame :)
function ActiveNotebook: TFileViewNotebook;
@ -2606,6 +2607,14 @@ begin
Screen.Cursors[crArrowLink] := LoadCursorFromLazarusResource('ArrowLink');
end;
procedure TfrmMain.AfterConstruction;
begin
FResizingFilePanels:= True;
inherited AfterConstruction;
FResizingFilePanels:= False;
pnlNotebooksResize(pnlNotebooks);
end;
procedure TfrmMain.UpdateActionIcons();
var
I: Integer;