More on the Ribbon
Using the custom UI Editor, try adding the following code to the Ribbon XML that you
constructed earlier. This should be added in after and before :
<group id="Group1" label="My Control">
<checkBox id="Checkbox 1 "
label="Checkbox sample"
onAction="MyCheckbox"
/>
Your example file in the Custom UI Editor should now look like this:
size="large" onAction="conBoldSub" imageMso="HappyFace" />
size="large" onAction="conItalicSub" imageMso="Italic" />
size="large" onAction="conUnderlineSub" imageMso="Underline" />
onAction="MyCheckbox"
/>
Note that you can have only oneCustom UIroot within the XML file. If you try a second
root for this, you will get errors and the ribbon XML will not work.
Chapter 11: Working with the Ribbon 141