Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.016 c
14-45519
Malder
2002-09-15 17:09
2002.10.14
---|Ветка была без названия|---


3-45173
lety
2002-09-20 18:37
2002.10.14
размер поля


4-45627
Delphi 5.01
2002-08-30 09:07
2002.10.14
Problema s TFIleStream!


1-45438
Smithson
2002-10-03 16:49
2002.10.14
Round, Trunc и ничего не понял


4-45634
Dmitriy Polskoy
2002-08-28 16:24
2002.10.14
WaitForSingleObject




   Наверх