Ribbon Button Alignment

E

Ed

I have an XML file, which I'm using to create a ribbon for my Excel
2007 add-in. I have two size-normal buttons in a group, and currently
they are top aligned. I would like to center align the two buttons just
as the Calculate Now and Calculation Sheet buttons are center aligned
on the Formulas tab in the Calculation group.

It doesn't seem apparent in the MSDN documentation on the ribbon on how
to do this. Is there a center alignment attribute available for this?
 
P

Patrick Schmid [MVP]

There is no way to do this.

Sorry,

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
Office 2007 Beta 2 Technical Refresh (B2TR):
http://pschmid.net/blog/2006/09/18/43
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://pschmid.net/office2007/ribboncustomizer
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed
 
K

Ken Slovak - [MVP - Outlook]

The only alignment I've been able to do was to create a blank control with a
space as a caption between the 2 controls.

That aligns the 2 controls top and bottom with a space in between. It has to
have a space, a null string just doesn't work.
 
P

Patrick Schmid [MVP]

A labelControl with just an id will do the trick as well. Simply don't
specify its label attribute. But you'll never be able to center it like
the Font group e.g.

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
Office 2007 Beta 2 Technical Refresh (B2TR):
http://pschmid.net/blog/2006/09/18/43
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://pschmid.net/office2007/ribboncustomizer
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed

The only alignment I've been able to do was to create a blank control with a
space as a caption between the 2 controls.

That aligns the 2 controls top and bottom with a space in between. It has to
have a space, a null string just doesn't work.




Patrick Schmid said:
There is no way to do this.

Sorry,

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
Office 2007 Beta 2 Technical Refresh (B2TR):
http://pschmid.net/blog/2006/09/18/43
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://pschmid.net/office2007/ribboncustomizer
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top