You are here: Home > Access - Ribbons > Ribbon XML / Controls > ButtonGroups
ButtonGroups
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="MyGroup1" label="Sample ButtonGroups"> <button id="MyButton1" label="Button alone" imageMso="_1" onAction="MyButton1CallbackOnAction"/> <buttonGroup id="myButtonGroup1"> <button id="MyButton2" imageMso="_2" label="Button 2" onAction="MyButton2CallbackOnAction"/> <button id="MyButton3" imageMso="HappyFace" label="OK?" onAction="MyButton3CallbackOnAction" /> </buttonGroup> <buttonGroup id="myButtonGroup2"> <button id="MyButton4" imageMso="FormatPainter" label="Paint" showLabel="false" onAction="paint" /> <toggleButton idMso="Bold" /> <toggleButton idMso="Underline" /> <toggleButton idMso="Italic" /> </buttonGroup> </group> </tab> </tabs> </ribbon> </customUI>
Attributes: id, idQ, insertAfterMso, insertAfterQ, insertBeforeMso,
insertBeforeQ, visible
Callbacks: getVisible
You can find this sample in Sample DB 1