You are here: Backstage - Button - Control
Backstage - Button - Control
Remark: All functions in this chapter refer to Access / Office 2010.
The button element is different to the standard Ribbon button on following attributes.
New:
- Attributes: expand, isDefinitive, layout, style
- Callbacks: -
Not available:
- Attributes: description, insertAfterMso, insertBeforeMso, insertAfterQ,
insertBeforeQ, size, showLabel, showImage
- Callbacks: getDescription, getShowImage, getShowLabel, getSize
The corresponding XML Ribbon file:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"> <ribbon startFromScratch="false"> <!-- Ribbon XML --> </ribbon> <backstage> <tab id="btab1" label="Label 1. Tab"> <firstColumn> <group id="myGroup" style="normal" label="Form Button"> <bottomItems> <button id="btn1" label="Form Button 1" imageMso="HappyFace"/> <button id="btn2" label="Form Button 2" expand="horizontal" style="normal" /> <button id="btn3" label="Form Button 3" style="borderless"/> <button id="btn4" label="Form Button 4" style="large" imageMso="HappyFace" screentip="Screentip" supertip="Supertip"/> </bottomItems> </group> </firstColumn> </tab> <button id="btnFast1" label="Label Backstage Button" imageMso="HappyFace" onAction="OnActionButton"/> </backstage> </customUI>
Attributes: Same as Standard Ribbon Button, except for above listed attributes.
Callbacks: Same as Standard Ribbon Button, except for above listed callbacks.
You can also find this sample in sample database "Backstage View".