mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-25 18:49:09 +02:00
Carbon intf: fixed bugs #0009713: Carbon Form.Show does not bring already displayed window to front and #0009714: Carbon menuitem remains active after selecting Form.show
git-svn-id: trunk@12107 -
This commit is contained in:
parent
69c6ec9a96
commit
82944ea49d
@ -1306,7 +1306,10 @@ begin
|
|||||||
//DebugLn('TCarbonWindow.ShowHide ' + DbgSName(LCLobject),' ', DbgS(AVisible));
|
//DebugLn('TCarbonWindow.ShowHide ' + DbgSName(LCLobject),' ', DbgS(AVisible));
|
||||||
|
|
||||||
if AVisible or (csDesigning in LCLobject.ComponentState) then
|
if AVisible or (csDesigning in LCLobject.ComponentState) then
|
||||||
FPCMacOSAll.ShowWindow(WindowRef(Widget))
|
begin
|
||||||
|
SelectWindow(WindowRef(Widget)); // activate and move window to front
|
||||||
|
FPCMacOSAll.ShowWindow(WindowRef(Widget));
|
||||||
|
end
|
||||||
else
|
else
|
||||||
FPCMacOSAll.HideWindow(WindowRef(Widget));
|
FPCMacOSAll.HideWindow(WindowRef(Widget));
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user