View Single Post
 
Old 06-11-2012, 07:22 AM
yiannis.spyridakis yiannis.spyridakis is offline Windows 7 32bit Office 2010 32bit
Novice
 
Join Date: Jun 2012
Posts: 2
yiannis.spyridakis is on a distinguished road
Default Ribbon button - showLabel attribute ignored

Hi folks,

I am playing around with the office ribbon in excel 2007/2010 (I am using Custom UI Editor and VBA).

It looks like the showLabel attribute of the button control is ignored. The xml below is for office 2007, but I see the same in excel 2010.
Button with id "customButton1" has property showLabel="false", but the label is shown regardless:
Code:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
	<ribbon>
		<tabs>
			<tab id="customTab" label="Contoso" insertAfterMso="TabHome">
				<group idMso="GroupClipboard" />
				<group idMso="GroupFont" />
				<group id="customGroup" label="Contoso Tools">
					<button id="customButton1" showLabel="false" label ="ConBold" size="large" onAction="conBoldSub" imageMso="Bold" />
					<button id="customButton2" label="ConItalic" size="large" onAction="conItalicSub" imageMso="Italic" />
					<button id="customButton3" label="ConUnderline" size="large" onAction="conUnderlineSub" imageMso="Underline" />
				</group>
			</tab>
		</tabs>
	</ribbon>
</customUI>
Using the getShowLabel delegate instead doesn't seem to make any difference...

Does anyone know what's going on?

Many thanks,
Yiannis
Reply With Quote