Вниз
Скачать: 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.44 MB
Время: 0.011 c
3-45164
Осирис
2002-09-19 15:29
2002.10.14
TADOQuery.SaveToFile()


1-45402
Arbin
2002-10-03 10:26
2002.10.14
Элиза


14-45500
asderg
2002-09-14 19:20
2002.10.14
Господа, (возможно коллеги) :)) неужели...


1-45326
Natangelina
2002-10-05 12:45
2002.10.14
Сравнить поле таблицы с edit.text


1-45309
Jumbot
2002-10-04 18:31
2002.10.14
Как можно изменить дату и время создания файла?




   Наверх