You are here:   Backstage View - radioGroup - getItemLabel

Backstage View - radioGroup - getItemLabel

 

Sets the label for a specific item.


Sample Ribbon XML 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>
             <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>

Function to be copied to a standard module:

Sub GetItemLabel(control As IRibbonControl, index As Integer, ByRef label)
    Select Case control.Id
        Case "rGrp"
            label = Format(index + 1, "00") & ". Item Label (Group1)"
        Case "rGrp1"
            label = Format(index + 1, "00") & ". Item Label (Group2)"
    End Select
End Sub


You can find this sample in download: BackstageView 1




Zurück

 

Last Updates:

18.03.2021
New Download added. ...

25.10.2018
Update Site "Trusted Locations" ...

22.10.2018
New Download added. ...

08.04.2018
IDBE RibbonCreator 2016 (x86 and x64) for Office 2013 and Office 2016 - new release. ...

 

Last update: