Achtung: Alle hier vorgestellten Eigenschaften funktionieren ausschließlich in Office 2010.
In einem radioGroup Element können Sie einzelne RadioButtons darstellen.
Aus einer radioGroup kann nur ein Eintrag (Item) gewählt werden.
Die dazugehörige XML Ribbon Datei:
<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> <radioGroup id="rGrp" label="Label RadioGroup" > <radioButton id="rbtn1" label="Label 1. RadioButton"/> <radioButton id="rbtn2" label="Label 2. RadioButton"/> <radioButton id="rbtn3" label="Label 3. RadioButton"/> </radioGroup> </bottomItems> </group> </firstColumn> </tab> <button id="btnFast1" label="Label Backstage Button" imageMso="HappyFace" onAction="OnActionButton"/> </backstage> </customUI>
RadioGroup:
Attribute: alignLabel, enabled, expand, id, idMso, idQ, keytip, label,
tag, visible
Callbacks: getEnabled, getItemCount, getItemID, getItemLabel, getKeytip,
getLabel, getSelectedItemIndex, getVisible, onAction
RadioButton:
Callbacks: getLabel
Sie finden dieses Beispiel auch in der Beispieldatenbank "Backstage View".