mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 15:56:10 +02:00
anchordocking: use MakeFullyVisible
git-svn-id: trunk@41972 -
This commit is contained in:
parent
5d64e62ba7
commit
0b36dae130
@ -2495,12 +2495,22 @@ begin
|
||||
end;
|
||||
|
||||
procedure TAnchorDockMaster.MakeVisible(AControl: TControl; SwitchPages: boolean);
|
||||
var
|
||||
Form: TCustomForm;
|
||||
begin
|
||||
while AControl<>nil do begin
|
||||
AControl.Visible:=true;
|
||||
if SwitchPages and (AControl is TAnchorDockPage) then
|
||||
TAnchorDockPageControl(AControl.Parent).PageIndex:=
|
||||
TAnchorDockPage(AControl).PageIndex;
|
||||
if AControl.Parent=nil then begin
|
||||
if AControl is TCustomForm then begin
|
||||
Form:=TCustomForm(AControl);
|
||||
if Form.Monitor<>nil then
|
||||
Form.MakeFullyVisible(nil,true);
|
||||
end;
|
||||
break;
|
||||
end;
|
||||
AControl:=AControl.Parent;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user