是否可以更改 TListView 组的字体大小?
从 Delphi 2009 开始,TListView 组件现在提供了显示使用“组”功能分组的项目的可能性。
是否可以仅更改组标题文本的字体大小?默认情况下,它使用与 ListView 项目的其余部分相同的字体和大小,但我想增加组标题文本的大小。
谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
操作系统以及 VCL 不支持自定义 ListView 组标题的字体大小。
The OS, and thus the VCL, does not support customizing the font size of ListView group headers.
我在这里找到了一段非常好的代码:
To更改 TListView 标题的字体
I found a really good piece of code here:
To change a font for TListView header
我具体不知道,但是在 Delphi 2007 中我尝试了 TListViews 的字体颜色和样式。
值得一看
方法并查看执行类似于以下内容的操作:
取决于例程中绘制的特定项目的详细信息
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
method and look at doing something similar to the following:
Depending on the details of the specific Item being drawn in the routine