如何使用自定义BuildingBlocks创建功能区的图库控件? [英] How to create a Ribbon's Gallery Control with custom BuildingBlocks?
本文介绍了如何使用自定义BuildingBlocks创建功能区的图库控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我保存了几个Building Block:
- MyTemplate = ActiveDocument.AttachedTemplate
- BuildingBlockTypes = wdTypeCustom1
- Category = " MyCategory"
现在我想在功能区中创建一个图库控件来访问它们。
我认为我必须使用"getItemCount","getItemImage"和"onAction"。画廊的回调但我无法理解这一点。
有人可以帮助我吗?
Lauro
解决方案
您不需要动态功能区回调来显示BuildingBlocks。尝试此功能区条目
< gallery idMso =" CustomGallery1" label =" Staff Biogs" />
Hi,
I have several Building Blocks saved in:
- MyTemplate= ActiveDocument.AttachedTemplate
- BuildingBlockTypes = wdTypeCustom1
- Category = "MyCategory"
Now I want to create a Gallery Control in the Ribbon to access them.
I thought that I had to work with the "getItemCount", "getItemImage", and "onAction" callbacks of the Gallery but I can't manage this.
Could someone help me?
Lauro
解决方案
You don't need dynamic ribbon callbacks to display the BuildingBlocks. Try this ribbon entry
<gallery idMso="CustomGallery1" label="Staff Biogs" />
这篇关于如何使用自定义BuildingBlocks创建功能区的图库控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文