You are here:   Home > Access - Ribbons > Ribbon XML / Controls > Menu

Menu

Menu in Ribbon

Sample Ribbon XML file:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
    <ribbon startFromScratch="false">
        <tabs>
            <tab id="MyTab" label="My Tab">
                <group id="MyGroup" label="My Group">
                    <labelControl id="myLabel1" label="Sample:" />
                    <labelControl id="myLabel2" label="Menu" />
                    <menu id="MyMenu" 
                          label="Menu Sample" 
                          itemSize="normal">
                        <toggleButton idMso="Bold"/>
                        <button id="MenuButton1" label="Button" imageMso="HappyFace"
                           onAction="MyButtonCallbackOnAction" />
                        <menuSeparator id="myMenuSep1"/>
                        <toggleButton id="MenuToggleButton1" label="Toggle Button"
                           imageMso="HappyFace"
                          onAction="MyToggleButtonCallbackOnAction"/>
                        <button idMso="FileExit"/>
                        <menu id="MyMenuNextLevel1" 
                              label="More"
                              itemSize="normal">
                            <button idMso="Cut"/>
                            <button idMso="Copy"/>
                            <button idMso="Paste"/>
                            <menuSeparator id="myMenuSep2" title="Large items next"/>
                                <menu id="MyMenuNextLevel2" 
                                      label="Large items"
                                      itemSize="large">
                                    <button idMso="Cut"/>
                                    <button idMso="Copy"/>
                                    <button idMso="Paste"/>
                                    <menuSeparator id="myMenuSep3"/>
                                    <dynamicMenu id="subMenu" label="Sub Menu"
                                      getContent="GetSubContent"/>
                                    <button id="dynaButton" label="Button"
                                      onAction="MyButtonCallbackOnAction"
                                       imageMso="HappyFace"/>
                                </menu>
                        </menu>
                    </menu>
                 </group>
            </tab>
        </tabs>
    </ribbon>
</customUI>




Attributes: description, enabled, id, idMso, idQ, image, imageMso,
                 insertAfterMso, insertAfterQ, insertBeforeMso, insertBeforeQ,
                 itemSize, keytiplabel, screentip, showImageshowLabel, size,
                 supertiptagvisible

Callbacks: getDescription, getEnabled, getImage
                  getKeytipgetLabel, getScreentip, getShowImage,
                  getShowLabel, getSizegetSupertipgetVisible

 

You can find this sample in Sample DB 1



 

 

Last Updates:

19.01.2013
Update Downloads for "Trusted Locations" - Versions for Office 2013 ...


29.08.2012
Revised versions for IDBE RibbonCreator2010 (Version 1.1014a) ...

07.08.2012
Update Group Attributes and Callbacks. ...

02.08.2012
New Access FAQ added. New Download added. ...

 

Last update:
April 07, 2013, 22:24