mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 06:43:15 +02:00
fix for hint window on show focusing
git-svn-id: trunk@18758 -
This commit is contained in:
parent
e8e122df26
commit
e07d1b374b
@ -217,6 +217,8 @@ type
|
||||
TCarbonHintWindow = class(TCarbonWindow)
|
||||
protected
|
||||
procedure CreateWindow(const AParams: TCreateParams); override;
|
||||
public
|
||||
procedure ShowHide(AVisible: Boolean); override;
|
||||
end;
|
||||
|
||||
{ TCarbonDesignWindow }
|
||||
@ -395,6 +397,14 @@ begin
|
||||
SetColor(LCLObject.Color);
|
||||
end;
|
||||
|
||||
procedure TCarbonHintWindow.ShowHide(AVisible: Boolean);
|
||||
begin
|
||||
if Assigned(fWindowRef) then
|
||||
MacOSAll.ShowHide(fWindowRef, AVisible or (csDesigning in LCLobject.ComponentState))
|
||||
else
|
||||
inherited ShowHide(AVisible);
|
||||
end;
|
||||
|
||||
{ TCarbonDesignWindow }
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user