Delphi 2010 中是否存在功能区动态选项卡?
我正在用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它们被称为“上下文选项卡”,如果我没记错的话,目前不支持它们。
They are called "Context Tabs", and if I'm not mistaken, they are not supported currently.
当 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 theContexts
property.