PDA

View Full Version : [SOLVED:] Custom Ribbon XML - Create a Dropdown with Additional SubMenu



ashleyuk1984
12-16-2014, 08:55 AM
Hi,
I'm having a little dabble with creating a Custom Ribbon as an "AddIn", and to save a lot of space I'm trying to create dropdown menus.

I've successfully created a dropdown menu that looks like this:

http://www.ultraimg.com/images/Capture2731f1.png

However, I was wondering if this kind of dropdown menu was possible?
Note the arrow, and additional submenu

http://www.ultraimg.com/images/Capture1a81f4.png

Of course, I've tried to Google this... and Google has helped me a lot up to this point. I'm just trying to take it that extra step further.
Thanks

Andy Pope
12-17-2014, 06:38 AM
Yes you can. this example has 3 levels of menus



<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" >
<ribbon >
<tabs >
<tab
id="Tab1"
label="Tab1">
<group
id="Group1"
label="Group1">
<menu
id="Menu1"
imageMso="FormulaMoreFunctionsMenu"
label="Menu1"
size="large">
<menu
id="Menu2"
label="Menu2">
<button
id="Button1"
label="Button1"/>
<button
id="Button2"
label="Button2"/>
</menu >
<menu
id="Menu3"
label="Menu3">
<button
id="Button3"
label="Button3"/>
<button
id="Button4"
label="Button4"/>
</menu >
<menu
id="Menu4"
label="Menu4">
<button
id="Button5"
label="Button5"/>
<menu
id="Menu5"
label="Menu5">
<button
id="Button6"
label="Button6"/>
<button
id="Button7"
label="Button7"/>
</menu >
</menu >
</menu >
</group >
</tab >
</tabs >
</ribbon >
</customUI >

ashleyuk1984
12-17-2014, 10:20 AM
Exactly what I was looking for. Thanks Andy.