Hallo,
dazu musst Du das Ereignis
OnCustomDrawSubItem bemühen.
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22:
| procedure TForm1.ListView1CustomDrawSubItem( Sender TCustomListView; Item:TListItem; SubItem:Integer; State:TCustomDrawState; var DefaultDraw:Boolean); begin with Sender.Canvas do begin if (SubItem=1) then begin Font.Name:='Wingdings'; Font.Size:=10; Font.Color:=clRed; Font.Style:=[fsBold]; end else begin Font.Name:='MS Sans Serif'; Font.Size:=8; Font.Color:=clBlack; Font.Style:=[]; end; end; end; |
_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)