Вниз
Скачать: 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.013 c
1-45267
Ahmad
2002-09-27 23:25
2002.10.14
Еще один банальный вопрос...


1-45424
pvasya
2002-10-03 13:52
2002.10.14
BlockWrite


1-45261
совсем Новенький
2002-10-04 11:23
2002.10.14
Компоненты InDy


3-45195
bobr12
2002-09-23 10:19
2002.10.14
Взаимодействие программ запущенных на разных машинах


14-45509
Alx2
2002-09-18 14:46
2002.10.14
Любителям эзотерики :)




   Наверх