You are here: Backstage - LayoutContainer
Backstage - LayoutContainer
Remark: All functions in this chapter refer to Access / Office 2010.

The layoutContainer element is responsible for the alignment of controls.
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>
<layoutContainer id="lay1" layoutChildren="horizontal">
<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"/>
</layoutContainer>
<labelControl id="lblLabel2" label="LayoutContainer - layoutChildren=vertical:"/>
<layoutContainer id="lay2" layoutChildren="vertical">
<button id="btn1a" label="Form Button 1" imageMso="HappyFace"/>
<button id="btn2a" label="Form Button 2" expand="horizontal" style="normal" />
<button id="btn3a" label="Form Button 3" style="borderless"/>
<button id="btn4a" label="Form Button 4" style="large" imageMso="HappyFace"
screentip="Screentip" supertip="Supertip"/>
</layoutContainer>
</bottomItems>
</group>
</firstColumn>
</tab>
<button id="btnFast1" label="Label Backstage Button" imageMso="HappyFace" onAction="OnActionButton"/>
</backstage>
</customUI>
Attributes: align, expand, id, idMso, idQ, layoutChildren, tag
Callbacks: -
You can also find this sample in sample database "Backstage View".

