|
|
От: |
solos
|
www.belton.com.ua |
| Дата: | 18.02.04 11:10 | ||
| Оценка: | |||
procedure TMainForm.StringGrid1DrawCell(Sender: TObject; ACol,
ARow: Integer; Rect: TRect; State: TGridDrawState);
begin
IF TStringGrid(Sender).Cells[2,2]='1' then
begin
TStringGrid(Sender).Canvas.Brush.Style:=bsSolid;
TStringGrid(Sender).Canvas.Brush.Color:=clRed;
end
else
TStringGrid(Sender).Canvas.Brush.Style:=bsClear;
end;