mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 08:20:19 +02:00
anchordocking: BringToFront: focus child form
git-svn-id: trunk@26206 -
This commit is contained in:
parent
22d9391ac8
commit
94629674b8
@ -1793,8 +1793,10 @@ begin
|
||||
AControl.EnableAutoSizing;
|
||||
end;
|
||||
// BringToFront
|
||||
if BringToFront and (Site<>nil) then
|
||||
if BringToFront and (Site<>nil) then begin
|
||||
GetParentForm(Site).BringToFront;
|
||||
Site.SetFocus;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TAnchorDockMaster.MakeDockSite(AForm: TCustomForm; Sites: TAnchors;
|
||||
@ -4627,7 +4629,7 @@ begin
|
||||
WidthDiff:=FSiteClientRect.Right-OldSiteClientRect.Right;
|
||||
HeightDiff:=FSiteClientRect.Bottom-OldSiteClientRect.Bottom;
|
||||
|
||||
debugln(['TAnchorDockManager.ResetBounds ',DbgSName(Site),' ',dbgs(Child.BaseBounds),' ',WidthDiff,',',HeightDiff]);
|
||||
//debugln(['TAnchorDockManager.ResetBounds ',DbgSName(Site),' ',dbgs(Child.BaseBounds),' ',WidthDiff,',',HeightDiff]);
|
||||
case ResizePolicy of
|
||||
admrpChild:
|
||||
begin
|
||||
|
@ -353,6 +353,7 @@ begin
|
||||
Parent:=GetParentForm(AForm);
|
||||
if Parent<>nil then
|
||||
Parent.ShowOnTop;
|
||||
AForm.SetFocus;
|
||||
end;
|
||||
end;
|
||||
//debugln(['TIDEAnchorDockMaster.ShowForm END ',DbgSName(AForm),' ',dbgs(AForm.BoundsRect)]);
|
||||
|
Loading…
Reference in New Issue
Block a user