mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 20:19:24 +02:00
Carbon: implemented LCLIntf.ShowWindow(SW_RESTORE). Patch by AlexeyT. issue #21816
git-svn-id: trunk@54792 -
This commit is contained in:
parent
33d34bce77
commit
a2e4b13df9
@ -1944,6 +1944,16 @@ begin
|
|||||||
if OSError(CollapseWindow(fWindowRef, True),
|
if OSError(CollapseWindow(fWindowRef, True),
|
||||||
Self, SName, SCollapse) then Exit;
|
Self, SName, SCollapse) then Exit;
|
||||||
end;
|
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;
|
end;
|
||||||
|
|
||||||
Result := True;
|
Result := True;
|
||||||
|
Loading…
Reference in New Issue
Block a user