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

ListViewDrawItem   Найти похожие ветки 

 
webpauk ©   (2007-12-14 20:02) [0]

procedure TFormMain.ListView1DrawItem(Sender: TCustomListView; Item: TListItem; Rect: TRect; State: TOwnerDrawState);
var
 TxtRect: TRect;
begin
 with Sender.Canvas do
 begin
   Brush.Color:=clWindow;
   if odFocused in State then Brush.Color:=clHighlight;
   FillRect(Rect);

   Font.Color := clred;
   TextOut(Rect.Left, Rect.Top, Item.Caption);
 end;
end;


рисуются только Items
а как рисовать Items.SubItems?


 
begin...end ©   (2007-12-14 20:36) [1]

Неужели в обработчике OnCustomDrawSubItem? 8-O



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

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



Память: 0.44 MB
Время: 0.012 c
9-1165408137
rts111
2006-12-06 15:28
2008.01.13
Сохранение 3D-моделей в *.pas файл


15-1196855705
No_Dead
2007-12-05 14:55
2008.01.13
«Программистская депрессия»


3-1189069315
Sonia
2007-09-06 13:01
2008.01.13
ORA-02064: distributed operation not supported


1-1192255008
Key
2007-10-13 09:56
2008.01.13
"Устаревший стиль объекта"


15-1197004170
Slider007
2007-12-07 08:09
2008.01.13
С днем рождения ! 7 декабря 2007 пятница




   Наверх