使用优秀的Office RibbonX编辑器,我为Word中的丝带创建了一个自定义选项卡。我使用这样的代码向其添加现有命令:
<button idMso="FileSave" />
<button idMso="FileSaveAs" />
<button idMso="Bold" />前两个图标显示为所需,它们工作正常。但是"Bold“按钮没有出现,图标和标签都没有出现。我确定这种情况只发生在ToggleButtons上,比如“子弹”或“上标”。
发布于 2020-04-25 20:46:11
切换按钮的正确术语是
可以在下面的xml中看到,它在我使原始文件不可见之后,在Word中重新构建了段落选项卡
<!-- Recreate the portions of the Paragraph tab that we actually need -->
<group
id="Home.Paragraphs"
label="Paragraph"
getVisible="RibbonCallbacksForVisibility.getVisible"
insertBeforeMso="GroupEditing">
<box
id="Home.Paragraph.Status"
boxStyle="horizontal">
<buttonGroup
id="Home.Paragraph.Alignment">
<toggleButton idMso="AlignLeft"/>
<toggleButton idMso="AlignCenter"/>
<toggleButton idMso="AlignRight"/>
<toggleButton idMso="AlignJustify"/>
</buttonGroup>
<buttonGroup
id="Home.Paragraph.Marks"
visible="true">
<toggleButton idMso="ParagraphMarks"/>
</buttonGroup>
</box>
<box
id="ParagraphIndent"
boxStyle="horizontal">
<button idMso="IndentDecreaseWord"/>
<button idMso="IndentIncreaseWord"/>
</box>
<box
id = "ParagraphOther"
boxStyle="horizontal">
<gallery idMso="LineSpacingGallery"/>
<button idMso="SortDialogClassic"/>
</box>
<dialogBoxLauncher>
<button idMso="ParagraphDialog"/>
</dialogBoxLauncher>
</group>https://stackoverflow.com/questions/61432188
复制相似问题