You are here:   Backstage View - group - getStyle

Backstage View - group - getStyle

 

Specifies a callback which returns the style of a group.



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>
        <taskGroup id="MytskGroup1" label="Label taskGroup 1. Column" helperText="Helpertext for 1. Column"/>
         <group id="myGroup21" label="Label 1. Group" getHelperText="GetHelperTextG" getShowLabel="GetShowLabelG" getStyle="GetStyle"/>
         <group id="myGroup22" label="Label 2. Group" getHelperText="GetHelperTextG" getShowLabel="GetShowLabelG" getStyle="GetStyle"/>
         <group id="myGroup23" label="Label 3. Group" getHelperText="GetHelperTextG" getShowLabel="GetShowLabelG" getStyle="GetStyle"/>
     </firstColumn>
    </tab>
  </backstage>
</customUI> 

Function to be copied to a standard module:

Sub GetStyle(control As IRibbonControl, style)
    Select Case control.Id
        Case "myGroup21"
            style = 0 '"normal"
        Case "myGroup22"
            style = 1 '"warning"
        Case "myGroup23"
            style = 2 '"error"
        Case Else
            style = 0 '"normal"
    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: