功能区选项卡单击事件 [英] ribbon tab click event

查看:78
本文介绍了功能区选项卡单击事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,

       经过一些研究,我发现无法在功能区中检测选项卡选择事件。

        After some researches, i have found that there is no way to detect tab selection event in ribbon.

我们的应用程序是基于word和excel的插件。我们正在为我们的插件应用程序集成浮动许可机制。我的意思是,我的插件应用程序用户将在他关闭文档/工作簿时单击选项卡并签入许可证时签出许可证。
要签入许可证,我可以在Addin_shutdown上进行编码,但要查看我需要检测用户是否选择了我的插件标签的许可证。

Our application is word and excel based addin. we are integrating floating licensing mechanism for our addin application. I mean, our addin app user will check out a license when he clicks on tab and check in license when he closes the document/workbook. To check in license, i can code it on Addin_shutdown but to check out a license i need to detect if user has selected our addin tab.

i 不要;想要使用Addin_startup 因为用户对此有严重的反对意见,因为他们不想在不使用我们的标签时签出许可证。

i don't want to use Addin_startup because users have serious objection on that because they dont want to check out license when they are not using our tab.

请告诉我是否有任何解决方法一直 发现。如果没有可用的解决方案,那么请告诉我如何以其他方式实现我们的目标,即检查许可证。我的目标是在使用我们的插件标签时结帐许可。

please tell me if there is any workaround have been discovered. if no solution is available then please tell me how can i achieve our objective over checkout of license in some other way. my objective is checkout of license when he uses our addin tab.

 谢谢

shashank

shashank

推荐答案

你好shashank,

Hi shashank,

感谢您在MSDN论坛上发帖。

Thanks for posting in the MSDN Forum.

我认为您可以在ThisAddIn类中设置一个全局变量来标记客户许可证是否已经签入的状态。它基于我的经验是Ribbon标签没有要订阅的事件。

I think you are able to set a global variable in ThisAddIn class to flag the status whether customers' license has bee checked in. And it's based on my experience that Ribbon tab has no event to subscribe.

祝你有个美好的一天,

Tom


这篇关于功能区选项卡单击事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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