lcl: set canvas.font.color if treeview item is selected otherwise we cannot see text anymore (qt,gtk,gtk2)

git-svn-id: trunk@24849 -
This commit is contained in:
zeljko 2010-04-23 11:09:14 +00:00
parent 7b5a4418e3
commit 37436b5e47

View File

@ -4527,6 +4527,11 @@ var
end
else
Details := ThemeServices.GetElementDetails(ttItemNormal);
if ((tvoThemedDraw in Options) or
(tvoRowSelect in Options)) and IsSelected then
Canvas.Font.Color := InvertColor(Brush.Color);
ThemeServices.DrawText(Canvas, Details, AText, NodeRect, DT_CENTER or DT_VCENTER, 0);
end;