LCL Carbon: implemented GetTextColor, fixes bug #0012166: TSpeedButton in carbon

git-svn-id: trunk@16655 -
This commit is contained in:
tombo 2008-09-19 16:53:19 +00:00
parent b7bcb7ed2c
commit ddeee54b5c

View File

@ -1774,7 +1774,19 @@ end;
function TCarbonWidgetSet.GetTextColor(DC: HDC): TColorRef;
begin
Result:=inherited GetTextColor(DC);
Result := clNone;
{$IFDEF VerboseWinAPI}
DebugLn('TCarbonWidgetSet.GetTextColor DC: ' + DbgS(HDC));
{$ENDIF}
if not CheckDC(DC, 'GetTextColor') then Exit;
Result := TCarbonDeviceContext(DC).TextColor;
{$IFDEF VerboseWinAPI}
DebugLn('TCarbonWidgetSet.GetTextColor Result: ' + DbgS(Result));
{$ENDIF}
end;
{------------------------------------------------------------------------------