menu
In the object model this is RibbonMenu.
Lets you cascade a list of menu items (or sub menu items) from a control.
A pop up menu can contain buttons or other menus
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="CustomTab" label="My Tab">
<group id="Group1" label="Group 1">
<menu id="MyMenu"
label="My Menu"
imageMso="HappyFace"
size="large">
<menu id="MySubMenu"
label="Sub menu">
<button id="MyButton5" label="Command 5"/>
</menu>
<menuSeparator id="Seperator1"/>
<button id="MyButton1" label="Command 1" imageMso="LeaveReader"/>
<button id="MyButton2" label="Command 2" imageMso="ErrorChecking"/>
<menuSeparator id="Seperator2"/>
<button id="MyButton3" label="Command 3"/>
<button id="MyButton4" label="Command 4"/>
</menu>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Attributes (properties)
| description | (Description) displayed when the itemsize is set to "large" |
| enabled | (Enabled) "true" | "false" |
| id | (Id) |
| idMso | (OfficeImageId) |
| idQ | |
| image | (Image) |
| imageMso | |
| insertAfterMso | |
| insertAfterQ | |
| insertBeforeMso | |
| insertBeforeQ | |
| itemSize | (ItemSize) "normal" | "large" (large shows the description as well as the label) |
| keytip | (KeyTip) |
| label | (Label) |
| screentip | (ScreenTip) |
| showImage (false) | (ShowImage) "true" | "false" |
| showLabel (false) | (ShowLabel) "true" | "false" |
| size | (ControlSize) |
| supertip | (SuperTip) |
| tag | (Tag) |
| title | (Title) 1 to 1024 controls the header text shown at the top of a menu |
| visible | (Visible) "true" | "false" |
| (Locked) | |
| (Modifiers) | |
| (GenerateMember) | |
| (Dynamic) "true" | "false" |
Children
This control can contain the following controls
| button | ||
| checkBox | ||
| control | ||
| dynamicMenu | ||
| gallery | ||
| menu | ||
| menuSeparator | ||
| splitButton | ||
| toggleButton |
C# Events (design-time)
There is an ItemsLoading event that is raised before a dynamic menu is displayed.
The ItemsLoad event is only raised when dynamic is True.
Callbacks (run-time)
| getDescription | |
| getEnabled | |
| getImage | |
| getImageMso | |
| getKeytip | |
| getLabel | |
| getScreentip | |
| getShowImage | |
| getShowLabel | |
| getSize | check / remove |
| getSupertip | |
| getVisible |
© 2025 Better Solutions Limited. All Rights Reserved. © 2025 Better Solutions Limited TopPrevNext