mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 08:39:35 +02:00
easydockmgr: disable autosizing
git-svn-id: trunk@24761 -
This commit is contained in:
parent
abec3c1abe
commit
b8f73c718a
@ -741,8 +741,7 @@ begin
|
||||
fo := Owner; //our owner also owns the forms
|
||||
if AName = '' then begin
|
||||
Result := TForm(TForm.NewInstance);
|
||||
if DisableUpdate then
|
||||
Result.DisableAlign;
|
||||
Result.DisableAlign;
|
||||
Result.Create(fo); //named Form1, Form2... - not now???
|
||||
end else begin
|
||||
//create new instance
|
||||
@ -754,12 +753,13 @@ begin
|
||||
exit(nil); //bad form name
|
||||
end;
|
||||
Result := TWinControl(fc.NewInstance);
|
||||
if DisableUpdate then
|
||||
Result.DisableAlign;
|
||||
Result.DisableAlign;
|
||||
Result.Create(fo);
|
||||
if Result.Name <> AName then
|
||||
TryRename(Result, AName);
|
||||
end;
|
||||
if not DisableUpdate then
|
||||
Result.EnableAlign;
|
||||
Result.Visible := True; //required for docking
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user