Custom ribbon buttons can be created with drop-down menus that enable you to group several tools under one button, allowing better organization of customized tools and minimizing ribbon clutter.
To create a drop-down menu:
1. Set the <Submenu> child element under the <Ribbon> element.
2. For each of the drop-down menu options, create an <Item> child element under the <Submenu> element:
a. Uniquely identifies the command that is being added to the drop-down menu by setting the <Item> element’s id attribute.
b. Define the path to the HTML page opened by the option by setting the <Item> element’s Path attribute.
c. Set the name of the option as it should be displayed in the drop-down menu by setting the <Item> element’s Caption attribute.
3. If you want to create a sub-command icon and tooltip, set the <ToolTip> and <Icon> child elements under the <Item> element.
<Tool caption="Data Analysis" id="ACO009" Path="MyToolFolder\MyTool.html" >
<Icon path="MyAddon.ico"/>
<Ribbon Show="1" Toggle="0">
<Category id="MyTabId" caption="My Tab"/>
<Panel id="MyGroupId" caption="My Group" />
<ToolTip title="My Tooltip" description="Tool for demonstrating add-on use"/>
<Submenu>
<Item caption="My SubmenuOption" id="MySubId" Path="MySubmenuToolFolder\MySubmenuTool.html">
<ToolTip title="My Tooltip" description="Tool for demonstrating submenu use"/>
<Icon path="MySubmenuOption.ico"/>
</Item>
</Submenu>
</Ribbon>
</Tool>