Главная страница
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.029 c
4-45636
stainer
2002-07-29 22:21
2002.10.14
rxmenu


6-45486
- Ruf -
2002-08-13 12:59
2002.10.14
Modem


3-45167
Sten
2002-09-18 22:23
2002.10.14
Структура базы


1-45410
dagsess
2002-10-03 12:02
2002.10.14
Поиск в памяти процесса


14-45515
Malder
2002-09-15 14:38
2002.10.14
Кто что думает о легализации проституции