Вниз
Скачать: 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.015 c
14-45539
Shadow
2002-09-19 19:51
2002.10.14
Аааа... Че за Глюки??????????????!!!!!!!!!!!!!!!


1-45339
Толик
2002-10-02 15:33
2002.10.14
Странное поведение конструкции with ... do


14-45556
Кот Бегемот
2002-09-19 20:44
2002.10.14
Люди с Белорусью надо что-то делать !!!


3-45189
ACR
2002-09-22 06:43
2002.10.14
case sens


4-45620
Endre
2002-08-29 15:40
2002.10.14
EasyTransparent98




   Наверх