我已经添加了一些自定义按钮在Word 2010的QAT上使用RibbonX,我也想使用splitButton来分组一些按钮,但我发现QAT无法显示自定义splitButtons。
RibbonX代码的一部分:
<splitButton idQ="x1:BookmarkButtons" visible="true"><button idQ="x1:InsertLinkedImportantContentBookmark" onAction="InsertLinkedImportantContentBookmark" label="Insert linked important content bookmark" imageMso="NewSketchpadTool" visible="true"/><menu idQ="x1:OtherBookmarkButtons" visible="true"><button idQ="x1:InsertLinkedImportantContentBookmark" imageMso="NewSketchpadTool" onAction="InsertLinkedImportantContentBookmark" label="Insert linked important content bookmark" visible="true"/><button idQ="x1:BoldAndInsertLinkedImportantContentBookmark" imageMso="NewSketchpadTool" onAction="BoldAndInsertLinkedImportantContentBookmark" label="Bold and insert linked important content bookmark" visible="true"/></menu></splitButton>当我使用Word对话框导入RibbonX文件时,没有错误,除了splitButton之外,所有的控件都工作正常,它没有出现在QAT上。我想知道我是否可以在Word 2010的QAT上放置一个自定义的splitButton控件。如果没有,我如何将一些函数组合在一起?非常感谢你的回答。
发布于 2010-12-22 05:11:55
不能,很遗憾不能将splitButton添加到QAT中。您能做的最好的事情就是创建一组seperator来将您的控件与其他控件分开。有关QAT的更多详细信息,请参阅http://msdn.microsoft.com/en-us/library/dd948879.aspx。
https://stackoverflow.com/questions/4426090
复制相似问题