[DUG] ListView.OnCustomDrawItem, Brush.Style bsFDiagonal

Ross Levis ross at stationplaylist.com
Fri Aug 10 01:25:07 NZST 2012


Hi Guys,

 

Wondering why this isn't working (D7).  I have a TListView with an
OnCustomDrawItem event which sets the font and brush colours of some items,
and I now want to highlight a specific type of item so I thought I would try
some brush styles to see what they look like, but nothing works.  It's
always bsSolid.

 

with Sender.Canvas do

begin

   Brush.Color := clBlack;

  Brush.Style := bsFDiagonal;

end;

 

It appears black alright but solid.  Any ideas?

 

Ross.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20120810/0bf9e190/attachment.html 


More information about the Delphi mailing list