Customizing the Office Menu

The Office Menu is treated as a special case within the RibbonX definitions, in that it's an element in its own right (rather than, say, being a special tab). You can add controls to it through the officeMenu element:

<customUI xmlns="http://schemas.microsoft.com/office/200 6/01/customui"> <ribbon>

<officeMenu>

<button id="rxOMBtn" label="Office Menu" onAction="rxOMBtn_onAction" /> </officeMenu> </ribbon> </customUI>

You can also add buttons to the built-in items on the Office Menus, such as the Send menu, by nesting the appropriate control IDs. Note that to do this, you have to use the correct control type, rather than the generic control element:

<customUI xmlns="http://schemas.microsoft.com/office/200 6/01/customui"> <ribbon>

<officeMenu>

<menu idMso="FileSendMenu">

<button id="rxSend" label="Send Menu" onAction="rxSend_onAction" /> </menu> </officeMenu> </ribbon> </customUI>

0 0

Post a comment