I'm currently using this code in the OnBeforeCellPaint event of my tree:
if Node.Index mod 2 = 0 then
begin
TargetCanvas.Brush.Color := clBlack;
TargetCanvas.FillRect(CellRect);
end
else
begin
TargetCanvas.Brush.Color := clPurple;
TargetCanvas.FillRect(CellRect);
end;
To color my nodes. But with hidden nodes this doesn't work as the index stays the same. Is there an visible index or an easy workaround?
Thanks in advance.