mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 03:39:17 +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));
|
||||
|
||||
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
|
||||
FPCMacOSAll.HideWindow(WindowRef(Widget));
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user