Sie sind hier: Backstage View - radioGroup - getItemCount
Backstage View - radioGroup - getItemCount
Der Callback liefert dem radioGroup Control die Anzahl der Items zurück
Beispiel 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" getItemCount="GetItemCount"
getItemID="GetItemID" getItemLabel="GetItemLabel" onAction="OnActionRadioGroup"
getSelectedItemIndex="GetSelectedItemIndex">
</radioGroup>
<radioGroup id="rGrp1" label="Label RadioGroup" getItemCount="GetItemCount"
getItemID="GetItemID" getItemLabel="GetItemLabel" onAction="OnActionRadioGroup"
getSelectedItemIndex="GetSelectedItemIndex">
</radioGroup>
</bottomItems>
</group>
</firstColumn>
</tab>
<button id="btnFast1" label="Label Backstage Button" imageMso="HappyFace" onAction="OnActionButton"/>
</backstage>
</customUI>
Funktion in einem Standardmodul:
Sub GetItemCount(control As IRibbonControl, ByRef count)
Select Case control.Id
Case "rGrp"
count = 3
Case "rGrp1"
count = 4
End Select
End Sub
Sie finden dieses Beispiel auch in der Beispieldatenbank "Backstage View 1".

