anchordocking: undo MakeFullyVisible - it moves windows to other desktops

git-svn-id: trunk@41983 -
This commit is contained in:
mattias 2013-07-03 13:00:35 +00:00
parent 9cbfcbcbcd
commit 06c4055b7c

View File

@ -2495,22 +2495,12 @@ 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;