mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-11 03:27:32 +01:00
anchordocking: do not mainform
git-svn-id: trunk@26006 -
This commit is contained in:
parent
380b22cd1b
commit
ec121147e9
@ -121,12 +121,14 @@ end;
|
||||
|
||||
procedure TIDEAnchorDockMaster.MakeIDEWindowDockSite(AForm: TCustomForm);
|
||||
begin
|
||||
// ToDo DockMaster.MakeDockable(AForm,false);
|
||||
if AForm<>Application.MainForm then
|
||||
DockMaster.MakeDockable(AForm,false);
|
||||
end;
|
||||
|
||||
procedure TIDEAnchorDockMaster.MakeIDEWindowDockable(AControl: TWinControl);
|
||||
begin
|
||||
DockMaster.MakeDockable(AControl,false);
|
||||
if AControl<>Application.MainForm then
|
||||
DockMaster.MakeDockable(AControl,false);
|
||||
end;
|
||||
|
||||
function TIDEAnchorDockMaster.GetDefaultLayoutFilename: string;
|
||||
@ -232,7 +234,10 @@ begin
|
||||
end;
|
||||
|
||||
finally
|
||||
DockMaster.MakeDockable(AForm,true,false);
|
||||
if AForm=Application.MainForm then
|
||||
AForm.Show
|
||||
else
|
||||
DockMaster.MakeDockable(AForm,true,false);
|
||||
AForm.EnableAlign;
|
||||
|
||||
if BringToFront then begin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user