procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
Rect: TRect; State: TGridDrawState);
begin
with StringGrid1 do
if Cells[acol,arow]='5' then begin
canvas.Font.color :=clgreen;
canvas.TextOut(Rect.Left+2, Rect.Top+2, Cells[acol,arow]);
end;
end;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.