#1
|
|||
|
|||
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> Does anyone know what's going on? Many thanks, Yiannis |
#2
|
|||
|
|||
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...)
|
#3
|
||||
|
||||
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.
|
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 |
Lost Ribbon Tab | bigred17 | Word | 6 | 09-24-2009 09:02 AM |