
26.09.2010, 09:56
|
 |
Активный
|
|
Регистрация: 06.08.2010
Адрес: Ярославль
Сообщения: 264
Версия Delphi: 7
Репутация: 14
|
|
Спасибо!  подстроил код под себя:
Код:
procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
Rect: TRect; State: TGridDrawState);
begin
if (ACol=2) and (ARow=2) then
begin
ColorBox1.Parent:=Self;
ColorBox1.Left:=Rect.Left+StringGrid1.Left+2;
ColorBox1.Top:=Rect.Top+StringGrid1.Top+2;
ColorBox1.Width:=Rect.Right-Rect.Left;
ColorBox1.Visible:=True;
end;
end;
end.
|