Carbon: implemented LCLIntf.ShowWindow(SW_RESTORE). Patch by AlexeyT. issue #21816

git-svn-id: trunk@54792 -
This commit is contained in:
zeljko 2017-05-01 11:48:23 +00:00
parent 33d34bce77
commit a2e4b13df9

View File

@ -1944,6 +1944,16 @@ begin
if OSError(CollapseWindow(fWindowRef, True),
Self, SName, SCollapse) then Exit;
end;
SW_RESTORE:
begin
if IsIconic then
SetForeground
else if IsZoomed then begin
if OSError(ZoomWindowIdeal(fWindowRef, inZoomIn, P),
Self, SName, SZoomIdeal, 'inZoomIn') then Exit;
SetForeground;
end;
end;
end;
Result := True;