Sie sind hier:   Backstage View - radioGroup - onAction

Backstage View - radioGroup - onAction

 

Der Callback wird ausgelöst, wenn ein Item ausgewählt wird.

 



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 OnActionRadioGroup(control As IRibbonControl, itemID, index)
    MsgBox "control.Id: " & control.Id & vbCrLf & _
           "itemID: " & itemID & vbCrLf & _
           "index: " & index, vbInformation, "Callback >onAction: radioGroup<"
End Sub





Sie finden dieses Beispiel auch in der Beispieldatenbank "Backstage View 1".





Zurück

 

Letzte Änderungen:

18.03.2021
Neuer Download für Excel hinzugefügt. ...

25.10.2018
Seite "Vertrauenswürdige Speicherorte" - aktualisiert.. ...

22.10.2018
Neuer Download hinzugefügt. ...

08.04.2018
IDBE RibbonCreator 2016 (x86 and x64) für Office 2013 und Office 2016 - Neue Version. ...

 

Letzte Änderung: