mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 04:36:31 +02:00
easydock: docking to docksite
git-svn-id: trunk@25723 -
This commit is contained in:
parent
7b26624558
commit
e3a13c09b5
@ -151,6 +151,7 @@ begin
|
||||
try
|
||||
if not (IsDockSite(AForm) or IsDockable(AForm)) then
|
||||
begin
|
||||
AForm.DisableAlign;
|
||||
// this form was not yet docked
|
||||
// place it at a default position and make it dockable
|
||||
GetDefaultBounds(AForm,Creator,NewBounds,DockSiblingName,DockAlign);
|
||||
@ -171,7 +172,11 @@ begin
|
||||
if DockSibling<>nil then
|
||||
begin
|
||||
NewDockSite:=DockSibling.HostDockSite;
|
||||
AForm.ManualDock(NewDockSite,DockSibling,DockAlign);
|
||||
debugln(['TIDEEasyDockMaster.ShowForm NewDockSite=',DbgSName(NewDockSite)]);
|
||||
if NewDockSite<>nil then
|
||||
AForm.ManualDock(NewDockSite,nil,DockAlign)
|
||||
else
|
||||
AForm.ManualDock(nil,DockSibling,DockAlign);
|
||||
end;
|
||||
end;
|
||||
if AForm.Parent=nil then begin
|
||||
@ -181,6 +186,7 @@ begin
|
||||
MakeIDEWindowDockable(AForm);
|
||||
end;
|
||||
end;
|
||||
AForm.EnableAlign;
|
||||
end;
|
||||
|
||||
finally
|
||||
@ -192,7 +198,7 @@ begin
|
||||
else
|
||||
Parent.Show;
|
||||
end;
|
||||
debugln(['TIDEEasyDockMaster.ShowForm END ',DbgSName(AForm)]);
|
||||
debugln(['TIDEEasyDockMaster.ShowForm END ',DbgSName(AForm),' ',dbgs(AForm.BoundsRect)]);
|
||||
end;
|
||||
|
||||
initialization
|
||||
|
Loading…
Reference in New Issue
Block a user