Carbon: implemented LCLIntf.ShowWindow(SW_RESTORE). Patch by Craig Peterson. Issue #0021816

git-svn-id: branches/fixes_1_8@56298 -
This commit is contained in:
mattias 2017-11-06 10:20:02 +00:00
parent d32512c2cd
commit 55569f881c

View File

@ -1939,6 +1939,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;