If you use ownerdraw with a TListView, the subitems are all BOLD font style by default somehow, even if the listview font.style is set to [], for all the SubItems following a custom drawn one.
A workaround I found is forcing the Style set in the CustomDrawSubItem event:
ListView2.Canvas.Font.Style := [fsItalic];
ListView2.Canvas.Font.Style := [];
(a simple call with [] won't work unless the default style is set to something other than [], because the SetStyle call doesn't think the style has changed)
This is however an ugly fix which involves extra processing time. Is there a better solution?
Demo project: http://www.mediafire.com/?v8bsdpvpfqy47vn
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…