Delphi 2010 中是否存在功能区动态选项卡?

发布于 2024-09-19 16:38:00 字数 145 浏览 1 评论 0原文

我正在用 Delphi 编写一个带功能区的应用程序。我不知道这些选项卡在技术上叫什么,但是有什么方法可以让我在满足条件时添加选项卡并具有不同的颜色? 就像在 Word 2007 中插入一个形状(“格式”选项卡)一样,该形状出现在所有选项卡的末尾并且是动态的(在运行时出现)?

I am writing an application with ribbon in Delphi. I don't know what are these tabs called technically, but is there any way that I can have tabs that are added when a condition is met and have a different color?
Just like the one when you insert a shape in Word 2007 ("Format" tab) that comes at the end of all the tabs and is dynamic (appears in run-time)?

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

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

发布评论

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

评论(2

在巴黎塔顶看东京樱花 2024-09-26 16:38:00

它们被称为“上下文选项卡”,如果我没记错的话,目前不支持它们。

They are called "Context Tabs", and if I'm not mistaken, they are not supported currently.

因为看清所以看轻 2024-09-26 16:38:00

当 Delphi 中首次引入 Ribbon 控件时,我们就研究了这一点。 Delphi 的原始功能区控件不支持它们,但我还没有检查新版本是否支持它们。

我们研究了 DevExpress 和 TMS 的 Ribbon 控件,并采用了 TMS 组件,因为它们是唯一(当时)支持该功能的组件。

查看他们的网站,TMS 显示正在使用此功能。检查TMS AdvToolBar 组件。 DevExpress 的 TdxRibbon 使用 Contexts 属性来实现它。

We looked at this when the Ribbon control was first introduced in Delphi. They were not supported in the original ribbon control with Delphi, but I haven't checked to see if they are supported in newer versions.

We looked at the Ribbon controls from DevExpress and TMS, and adopted the TMS cxomponents, as theirs was the only one (at that time) that supported the feature.

Looking at their websites, TMS shows this feature being used. Check the TMS AdvToolBar component. DevExpress' TdxRibbon implements it with the Contexts property.

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