是否可以更改 TListView 组的字体大小?

发布于 2024-08-15 02:04:47 字数 149 浏览 2 评论 0原文

从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

秉烛思 2024-08-22 02:04:47

操作系统以及 VCL 不支持自定义 ListView 组标题的字体大小。

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

乱了心跳 2024-08-22 02:04:47

我在这里找到了一段非常好的代码:

To更改 TListView 标题的字体

I found a really good piece of code here:

To change a font for TListView header

城歌 2024-08-22 02:04:47

我具体不知道,但是在 Delphi 2007 中我尝试了 TListViews 的字体颜色和样式。

值得一看

高级自定义绘制项目

方法并查看执行类似于以下内容的操作:

ListView.Canvas.Font.Size := 10;

取决于例程中绘制的特定项目的详细信息

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文