Вниз
Скачать: CL | DM;

ListView. Как раскрасить строки   Найти похожие ветки 

← →
TCrash ©   (2003-11-05 00:07) [0]

Имеем TListView с vsReport. Можно ли некоторые строки выделить цветом?

Спасибо.


← →
Спрашивающий_   (2003-11-05 03:20) [1]

Можно например так
procedure TForm1.ListView1CustomDrawItem(Sender: TCustomListView;
Item: TListItem; State: TCustomDrawState; var DefaultDraw: Boolean);
begin
If ListView1.Items[2]=Item Then
begin
ListView1.Canvas.Brush.Color:=clRed;
ListView1.Canvas.FillRect(Rect(0,0,0,0));
end Else
begin
ListView1.Canvas.Brush.Color:=clLime;
ListView1.Canvas.FillRect(Rect(0,0,0,0));
end;

end;


← →
Спрашивающий_   (2003-11-05 03:23) [2]

Поправка строку ниже можно не использовать
ListView1.Canvas.FillRect(Rect(0,0,0,0));



Страницы: 1 вся ветка

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



Память: 0.45 MB
Время: 0.02 c
1-41324
qwe
2003-10-30 17:59
2003.11.13
Классы


7-42155
Olexander
2003-09-01 15:17
2003.11.13
Thread + Win98 = ?


4-42219
Пубертанец
2003-09-02 17:39
2003.11.13
2 вопроса


14-42084
Bis
2003-10-24 11:40
2003.11.13
тупой вопрос для самых умных


1-41481
zapped
2003-10-28 15:29
2003.11.13
Service debugging




   Наверх