The goal is to have the diamond or heart suit symbol shown in red, with the rest of the cell's text in black. Never more than one symbol in a cell.
As a starter, I'm just trying to paint those entire cells myself in red, but even that eludes me. Another issue, how do I prevent Laz from repainting those cells?
I've set up on OnDrawCell event like this:
s := Grid.Worksheet.ReadAsText(aRow, aCol);
i := pos('♦', s);
if i = 0 then
i := pos('♥', s);
if i <> 0 then
begin
Grid.Canvas.font.Color := clRed;
Grid.Canvas.TextOut(1,1, s);
end; // make red