Autor Beitrag
FriFra
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Mo 18.11.02 19:30 
Wie kann ich Schriftfarbe eines einzelnen SubItems (nur Zelle nicht galze Spalte oder Zeile) in einer TListview ändern bzw. abfragen?
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: Mo 18.11.02 21:32 
da habe ich auch noch ne zusätzliche frage.
wenn ich meine items mit advanceditemdraw selber zeichen flackert die ausgabe im listview wie verrückt.
Kann mir helfen?
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Di 19.11.02 01:35 
Hallo FriFra,

Ireniceus hat dir die lösung im grunde schon verraten, im OnAdvancedCustomDrawItem kannst du einfluss auf das Zeichnen nehmen. Wenn du da z.B. Canvas.Brush.Color änderest wird die geänderte Farbe verwendet, das eigentliche Zeichnen nusst du aber nicht selber übernehmen. Dafür währe OnDrawItem zuständig.
Woher das Flackern kommt weiß ich nicht, das Grid in meinem Mailprogramm flackert nicht (hinteres Fenster).

[url=www.oitmann.de/meine...images/portmail.jpg]user defined image[/url]

Gruß
Klabautermann
Kai Heitkamp
Hält's aus hier
Beiträge: 12



BeitragVerfasst: Mo 16.12.02 20:22 
Das Flackern hatte ich zuerst auch, aber statt

ausblenden Quelltext
1:
TListView.Font.Color := RGB(bla, bla, bla);					


versuche mal

ausblenden Quelltext
1:
TListView.Canvas.Font.Color := RGB(bla, bla, bla);					


...dann flackert es nicht ! 8)

Gruß
Kai