【问题标题】:Powerpoint - XML - Ribbon - Difficulties with some idMsoPowerpoint - XML - 功能区 - 一些 idMso 的困难
【发布时间】:2020-02-08 08:58:39
【问题描述】:

我希望你一切都好。 我目前正在 powerpoint 中创建一个 customUI 功能区,并且遇到以下问题 with 没有出现在功能区中:

    <button idMso="TextBoxInsert" visible="true"/>
    <button idMso="Font" visible="true"/>
    <button idMso="FontSize" visible="true"/>
    <button idMso="ShapeHeight" visible="true" showLabel="true"/>
    <button idMso="ShapeWidth" visible="true" showLabel="true"/>

我已经通过微软文档:https://docs.microsoft.com/en-us/openspecs/office_standards/ms-customui/f2a8e3c0-14cb-4ad3-88cd-a8b5b1b9a8a0

并尝试了以下使整个功能区消失的方法:

    <tooglebutton idMso="TextBoxInsert" visible="true"/>
    <combobox idMso="Font" visible="true"/>
    <comboboxidMso="FontSize" visible="true"/>
    <combobox idMso="ShapeHeight" visible="true" showLabel="true"/>
    <combobox idMso="ShapeWidth" visible="true" showLabel="true"/>

经过几次尝试,我仍然无法理解错误,也没有找到解决方法。

有人对此有想法吗? 亲切的问候, 纳克索斯

【问题讨论】:

  • 你能给你看代码吗?你在哪里设置这个 XML?
  • 我把开头去掉了让它更容易!
  • 好的,我在 TextboxInsert、Font 和 Fontsize 中删除了 visible="true"!这仅在缺少 ShapeHeight 和 ShapeWidth 时有效!

标签: xml vba powerpoint ribbon


【解决方案1】:

将togglebutton 更正为togglebutton。 在第二个组合框和单词 idMso 之间添加一个空格。 ShapeHeight 和 ShapeWidth 都是控件,而不是组合框。

当您不熟悉编辑 XML 时,请从已知的良好安排开始,进行一次更改,然后进行测试。重复。否则很难确定错误可能在哪里。

【讨论】:

  • 关于该主题的最后一个问题,是否有任何特定操作可以对控件/切换按钮/图库功能执行键提示操作?在我的功能区上,键提示仍然是工厂键提示!
  • 对于一个简单的单行描述符,使用 screenTip = "Insert textbox"。对于更复杂的控件,您还可以添加 superTip = "此按钮将插入一个文本框,您可以在其中输入文本"。
猜你喜欢
  • 1970-01-01
  • 2011-03-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-03-09
  • 1970-01-01
  • 1970-01-01
  • 2019-09-11
相关资源
最近更新 更多