TsListView!!!
Yes, both CustomDrawItem and CustomDrawSubItem…
setting the Canvas.Font.Color ist not possible since 8.42 the font color is always black. 🙁
Just some code snippet:
Code:
procedure TFormCompareSet.lvDiffCustomDrawItem(Sender: TCustomListView;
Item: TListItem; State: TCustomDrawState; var DefaultDraw: Boolean);
begin
if Item.Index mod 2 = 0
then lvDiff.Canvas.Brush.Color := FormMain.RowColor
else lvDiff.Canvas.Brush.Color := lvDiff.Color;
if Item.Checked
then
if item.SubItems[11] = FormMain.lwLngTrns(name,['Add'])
then lvDiff.Canvas.Font.Color := clGreen
else
if (item.SubItems[11] = FormMain.lwLngTrns(name,['Update']))
then lvDiff.Canvas.Font.Color := clBlue
else lvDiff.Canvas.Font.Color := clRed
else lvDiff.Canvas.Font.Color := clMedGray;
end;
It also not working in your own AlphaControls Demo.