在“插入超链接”下面的形状上下文菜单中添加一个条目 [英] Adding an entry to the shape context menu below 'Insert Hyperlink'

查看:129
本文介绍了在“插入超链接”下面的形状上下文菜单中添加一个条目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在开发一个与我们自己的产品集成的Visio 2010加载项。我想在选择形状时在右键单击菜单上的"插入超链接"下面添加一个条目(ContextMenuShape)。使用
insertAfterMso =" HyperlinkInsert" 正常工作,直到链接添加到形状,按钮更改为
编辑超链接... 发生这种情况时,我添加的条目将移动到上下文菜单的底部。这表明
编辑超链接... 选项与插入超链接... 的ControlID不同。所以我想知道如何将我自己的条目放在超链接按钮下方的上下文菜单中,但在分隔符上方(因为它是一种链接类型,我们将
添加到形状)。分隔符是否具有唯一ID,如果是,我该如何判断它们是什么?

I'm working on an add-in for Visio 2010 that will integrate with our own product. I want to add an entry below 'Insert Hyperlink' on the right-click menu when a shape is selected (ContextMenuShape). Using insertAfterMso="HyperlinkInsert" works fine until a link is added to the shape, and the button changes to Edit Hyperlinks... When this happens, the entry I've added is moved to the bottom of the context menu. This suggests that the Edit Hyperlinks... option does not have the same ControlID as Insert Hyperlink... . So I'm wondering how I can put my own entry in the context menu just below the hyperlink button, but above the separator (as it is a type of link we will be adding to shapes). Do the separators have unique IDs, and if so, how can I tell what they are?

谢谢。

推荐答案

近800个视图,没有答案!好悲伤,有没有人有任何其他想法,甚至只是指向我可以寻找这种事物的方向?
Nearly 800 views and no answer! Good grief, does anyone have any alternative ideas or even just a pointer in the direction of where I can look for this kind of thing?


这篇关于在“插入超链接”下面的形状上下文菜单中添加一个条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆