fix for hint window on show focusing

git-svn-id: trunk@18758 -
This commit is contained in:
dmitry 2009-02-19 07:28:45 +00:00
parent e8e122df26
commit e07d1b374b

View File

@ -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 }
{------------------------------------------------------------------------------