Sie sind hier: Backstage View - group - getShowLabel
Backstage View - group - getShowLabel
Der Callback liefert zurück ob ein Label angezeigt werden soll.
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>
<taskGroup id="MytskGroup1" label="Label taskGroup 1. Column" helperText="Helpertext for 1. Column"/>
<group id="myGroup21" label="Label 1. Group" getHelperText="GetHelperTextG" getShowLabel="GetShowLabelG" style="normal"/>
<group id="myGroup22" label="Label 2. Group" getHelperText="GetHelperTextG" getShowLabel="GetShowLabelG" style="warning"/>
<group id="myGroup23" label="Label 3. Group" getHelperText="GetHelperTextG" getShowLabel="GetShowLabelG" style="error"/>
</firstColumn>
</tab>
</backstage>
</customUI>
Funktion in einem Standardmodul:
Sub GetShowLabelG(control As IRibbonControl, ByRef showLabel)
Select Case control.Id
Case Else
showLabel = False
End Select
End Sub
Sie finden dieses Beispiel auch in der Beispieldatenbank"Backstage View 1".

