mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 09:16:13 +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),
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user