mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-14 23:39:23 +02:00
win32: draw disabled toolbutton text as gray (issue #0023197)
git-svn-id: trunk@41644 -
This commit is contained in:
parent
a17f69a025
commit
7fd7d1a57d
@ -500,7 +500,13 @@ begin
|
|||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
if ThemesEnabled then
|
if ThemesEnabled then
|
||||||
DrawText(TCanvas(ACanvas).Handle, Details, S, R, Flags, Flags2)
|
begin
|
||||||
|
// windows does not paint disabled toolbar text properly - the only way is
|
||||||
|
// to fix it here with disabled button text
|
||||||
|
if (Details.Element = teToolBar) and (Details.State = TS_DISABLED) then
|
||||||
|
Details := GetElementDetails(tbPushButtonDisabled);
|
||||||
|
DrawText(TCanvas(ACanvas).Handle, Details, S, R, Flags, Flags2);
|
||||||
|
end
|
||||||
else
|
else
|
||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user