Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ms word 动态启用或禁用自定义功能区按钮_Ms Word_Word 2010_Word 2007_Ribbonx_Word 2013 - Fatal编程技术网

Ms word 动态启用或禁用自定义功能区按钮

Ms word 动态启用或禁用自定义功能区按钮,ms-word,word-2010,word-2007,ribbonx,word-2013,Ms Word,Word 2010,Word 2007,Ribbonx,Word 2013,我已使用功能区xml向word 2010添加了自定义功能区按钮。 当文档受保护或只读时,我想禁用功能区按钮,当用户删除保护时,我想重新启用这些按钮 很遗憾,我没有收到任何功能区单击事件或文档属性更改事件,因此我该怎么办?您可能会在指定的受保护视图窗口中的文档上启用编辑之前立即触发的应用程序类事件 请注意,Fluent UI(也称为Ribbon UI)是基于回调的。您可以在MSDN的以下系列文章中阅读有关功能区控件的更多信息: 使用回调在显示(单击)选项卡时获得通知

我已使用功能区xml向word 2010添加了自定义功能区按钮。
当文档受保护或只读时,我想禁用功能区按钮,当用户删除保护时,我想重新启用这些按钮

很遗憾,我没有收到任何功能区单击事件或文档属性更改事件,因此我该怎么办?

您可能会在指定的受保护视图窗口中的文档上启用编辑之前立即触发的应用程序类事件

请注意,Fluent UI(也称为Ribbon UI)是基于回调的。您可以在MSDN的以下系列文章中阅读有关功能区控件的更多信息:

使用回调在显示(单击)选项卡时获得通知