PageControl 左对齐选项卡上的水平文本方向

发布于 2024-07-25 06:07:42 字数 25 浏览 3 评论 0原文

是否有可能水平方向左对齐选项卡标题?

Is there any possibility to orient left aligned tab captions horizontally?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

捂风挽笑 2024-08-01 06:07:42

不确定您到底想要什么,但您可以将 OwnerDraw 属性设置为 True。 并使用OnDrawTab事件自己绘制。

Not sure what you want exactly, but you can set the OwnerDraw property to True. And use the OnDrawTab event to draw it yourself.

紫南 2024-08-01 06:07:42

除了使用 Ownerdraw 之外,我认为没有一种简单的方法可以使用 TPageControl 来做到这一点。 如果您考虑使用非免费的第三方组件,我使用 Raize Components 的 TRzPageControl,它具有此功能。 确保将“TextOrientation”设置为水平,并将 TabStyle 设置为圆角(默认选项卡样式与水平模式下的文本看起来很奇怪)。

Besides using ownerdraw I don't think there is an easy way to do that with the TPageControl. If you'd consider using a non-free third party component, I use the TRzPageControl from Raize Components and it has this feature. Make sure to set the "TextOrientation" to horizontal and the TabStyle to roundcorners (the default tab style looks odd with the text on horizontal mode).

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