Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.10.14;
Скачать: CL | DM;

Вниз

StringGrid   Найти похожие ветки 

 
irmantukas ©   (2002-10-03 04:29) [0]

Ребята помогите! Как менят цвет в cell StringGrid"а?


 
MBo ©   (2002-10-03 06:18) [1]

в OnDrawCell


 
Dimich1978 ©   (2002-10-03 09:51) [2]

procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
Rect: TRect; State: TGridDrawState);
var op,i:integer;
begin
if cona=0 then
for i:=0 to stringgrid1.rowcount-1 do
if (ACol=0)and( stringgrid1.Cells[1,i]<>"") then begin
StringGrid1.Canvas.Brush.Color:=clred;
StringGrid1.Canvas.FillRect(Rect);
end;
if cona=1 then begin
for i:=0 to stringgrid1.rowcount do begin
if mas[i]=1 then
if (acol=0)and(arow=i)and( stringgrid1.Cells[1,i]<>"") then begin
StringGrid1.Canvas.Brush.Color:=clgreen;
StringGrid1.Canvas.FillRect(Rect);
end;
if mas[i]=0 then
if (acol=0)and(arow=i)and(stringgrid1.Cells[1,i]<>"") then begin
StringGrid1.Canvas.Brush.Color:=clred;
StringGrid1.Canvas.FillRect(Rect);
end;
end;
end;
end;



Страницы: 1 вся ветка

Текущий архив: 2002.10.14;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.015 c
6-45486
- Ruf -
2002-08-13 12:59
2002.10.14
Modem


4-45616
Ребенок Кирилл
2002-08-28 18:09
2002.10.14
Достать выделенный текст из броузера


1-45332
Лана Розанова
2002-10-05 12:05
2002.10.14
HTML


4-45649
ProNix
2002-08-29 19:32
2002.10.14
Свой код в чужом *.exe файле


4-45612
m-Sergo
2002-08-29 00:42
2002.10.14
издевательство над чужими окнами