开发者

Is it possible to change the font size of TListView groups?

Starting with Delphi 2009, the TListView component now offers the possibility to show items grouped using the Groups feature.

Is it possible to change the font size of just the groups header text? By default it uses the same font 开发者_运维问答and size as the rest of the ListView items but I would like to increase the size of the groups header text.

Thanks!


The OS, and thus the VCL, does not support customizing the font size of ListView group headers.


I found a really good piece of code here:

To change a font for TListView header


I don't know specifically, however in Delphi 2007 I play around with the Font Colour and Style of TListViews.

It would be worth looking at the

AdvancedCustomDrawItem

method and look at doing something similar to the following:

ListView.Canvas.Font.Size := 10;

Depending on the details of the specific Item being drawn in the routine

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜