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

Button

Buttons

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="Buttons" />
                <button idMso="PrintDialogAccess" 
                        size="large" 
                        label="Print"
                 imageMso="PrintDialogAccess" />
                <button id="MyButton1" 
                        size="large" 
                        label="Print large"
                        imageMso="PrintDialogAccess"
                        onAction="MyButtonCallbackOnAction"/>
                <button id="MyButton2" size="normal" label="Print small"
                  imageMso="PrintDialogAccess"
                  onAction="MyButtonCallbackOnAction"/>
                <button id="MyButton3" size="normal" imageMso="PrintDialogAccess"
                  onAction="MyButtonCallbackOnAction"/>
                <button id="MyButton4" size="normal" label="Print small"
                  onAction="MyButtonCallbackOnAction"/>
            </group>
         </tab>
      </tabs>
   </ribbon>
</customUI>

 

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

Callbacks: getDescription, getEnabled, getImage
                  getKeytipgetLabel, getScreentip, getShowImage,
                  getShowLabel, getSizegetSupertip,  getVisible, onAction

 

 

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