Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-11-2012, 07:22 AM
yiannis.spyridakis yiannis.spyridakis is offline Ribbon button - showLabel attribute ignored Windows 7 32bit Ribbon button - showLabel attribute ignored Office 2010 32bit
Novice
Ribbon button - showLabel attribute ignored
 
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
  #2  
Old 06-11-2012, 07:33 AM
yiannis.spyridakis yiannis.spyridakis is offline Ribbon button - showLabel attribute ignored Windows 7 32bit Ribbon button - showLabel attribute ignored Office 2010 32bit
Novice
Ribbon button - showLabel attribute ignored
 
Join Date: Jun 2012
Posts: 2
yiannis.spyridakis is on a distinguished road
Default

More info: the attribute is only ignored if the button size is 'large'. I now wonder: is this by design? (I can't think of a reason why...)
Reply With Quote
  #3  
Old 06-12-2012, 11:21 PM
Colin Legg's Avatar
Colin Legg Colin Legg is offline Ribbon button - showLabel attribute ignored Windows 7 32bit Ribbon button - showLabel attribute ignored Office 2010 32bit
Expert
 
Join Date: Jan 2011
Location: UK
Posts: 369
Colin Legg will become famous soon enough
Default

I was reading Ken Puls' blog article and he made the same observation as you. He worked around it by removing the label attribute from the XML.
Reply With Quote
Reply

Tags
ribbon

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Are changes to the ribbon global? TechEd Word 0 05-26-2011 12:23 AM
Excel 2010 Ribbon look like 2007's Ribbon esotop Excel 0 03-22-2011 07:05 PM
What slide attribute can I use in VBA to detect hidden slide? mikel401 PowerPoint 1 02-22-2011 11:13 AM
How do I add a Ribbon to my slide? Sylva PowerPoint 0 01-30-2011 01:25 AM
Ribbon button - showLabel attribute ignored Lost Ribbon Tab bigred17 Word 6 09-24-2009 09:02 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft