mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 17:39:20 +02:00
LCL Carbon: implemented GetTextColor, fixes bug #0012166: TSpeedButton in carbon
git-svn-id: trunk@16655 -
This commit is contained in:
parent
b7bcb7ed2c
commit
ddeee54b5c
@ -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;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user