Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Listview - Caption Hintergrund bleibt weiß (https://www.delphipraxis.net/53460-listview-caption-hintergrund-bleibt-weiss.html)

jaikai 17. Sep 2005 00:24


Listview - Caption Hintergrund bleibt weiß
 
Hi Leute,

hab'n leidiges Thema, aber ich komm nicht dahinter

Wenn ich über

Delphi-Quellcode:
... onCustomDrawSubItem ...

DefaultDraw := true;
//...
if Item.SubItems.Strings[0] = '1' then Sender.Canvas.Brush.Color := $008FE4FF;
die Einträge unterschiedlich färbe, warum bleibt dann der Hintergrund der Caption ohne Farbe (bzw schwarz auf weiss) ? Wie schaff ich's, den auch noch passend einzufärben?

Danke

:gruebel:

Luckie 17. Sep 2005 00:30

Re: Listview - Caption Hintergrund bleibt weiß
 
Versuch mal:
Delphi-Quellcode:
Canvas.Brush.Style := bsClear;


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:20 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz