Xml Can';t将切换按钮添加到自定义功能区
使用优秀的Office RibbonX编辑器,我在Word中为Ribbon创建了一个自定义选项卡。我使用这样的代码向其中添加现有命令:Xml Can';t将切换按钮添加到自定义功能区,xml,ms-office,ribbon,ribbonx,Xml,Ms Office,Ribbon,Ribbonx,使用优秀的Office RibbonX编辑器,我在Word中为Ribbon创建了一个自定义选项卡。我使用这样的代码向其中添加现有命令: <button idMso="FileSave" /> <button idMso="FileSaveAs" /> <button idMso="Bold" /> 前两个图标根据需要显示,并且工作正常。但“粗体”按钮不会出现,图标和标签也不会出现。我确定这只会发生在切换按钮
<button idMso="FileSave" />
<button idMso="FileSaveAs" />
<button idMso="Bold" />
前两个图标根据需要显示,并且工作正常。但“粗体”按钮不会出现,图标和标签也不会出现。我确定这只会发生在切换按钮上,如“项目符号”或“上标”。切换按钮的正确术语是
这很可能是因为应该有一个切换按钮!把它放在一个答案中,这样我就可以接受了。要么这是新手XML,要么Fernando Andreu真的需要编写一本用户手册!(如果我没有那么多钱,我会免费做的。)你不知道吗。由技能水平略高于不称职水平的人编写。这不是对您的编码的评论!我的意思是,也许除了我,每个人都知道“切换按钮”
<toggleButton
<!-- 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>