Visio Guy

Visio Discussions => Visio 2010 Issues => Topic started by: gwideman on January 05, 2012, 11:28:46 PM

Title: Ribbon custom buttons: How to control their size?
Post by: gwideman on January 05, 2012, 11:28:46 PM
Hi folks -- I was kind of hoping google would cough up an answer for this, but no luck.

When I add buttons to a ribbon using "Customize the Ribbon" (eg: adding individual Text/Rectangle/Ellipse/Line/Freeform buttons to a new "Tools2" group on the Home ribbon), those added buttons expand to a single row at huge size if there's enough space to do so. 

I don't want them to expand, I just want them normal size, and in two or three rows.  When expanded they look ridiculous, partly because they are bigger than all the other buttons, and partly because their images are generated from small-size bitmaps that look pixelated when expanded.

Is there any way to disable this gratuitous expansion?

On a related issue, is there some documentation somewhere on where this ribbon customization data is stored?  (Obviously I'm wondering if there's some setting in the data that one can edit.)

-- Graham
Title: Re: Ribbon custom buttons: How to control their size?
Post by: AndyW on January 06, 2012, 08:24:31 AM
From your ribbon customisation dialog you should be able to export the Visio customisations to a file. You can then edit the file, changing the "autoScale" setting to "false". Then from the ribbon customisation, import the modified file and save your diagram. The button should now be smaller, a single row.

Note, make sure you are careful with the case as the ribbon xml is very sensitive.
Title: Re: Ribbon custom buttons: How to control their size?
Post by: gwideman on January 06, 2012, 10:10:19 AM
Quote from: AndyW on January 06, 2012, 08:24:31 AM
From your ribbon customisation dialog you should be able to export the Visio customisations to a file. You can then edit the file...

Excellent!  Exactly what I needed to know, and works well, what a relief!
Title: Re: Ribbon custom buttons: How to control their size?
Post by: gwideman on January 13, 2012, 02:03:21 PM
Quote from: AndyW on January 06, 2012, 08:24:31 AM
From your ribbon customisation dialog you should be able to export the Visio customisations to a file. You can then edit the file, changing the "autoScale" setting to "false". Then from the ribbon customisation, import the modified file and save your diagram. The button should now be smaller, a single row.

Note, make sure you are careful with the case as the ribbon xml is very sensitive.

... and though it works in the advertised manner, I discovered that if I subsequently add items to the Quick Access Toolbar, my autoscale setting on the tab I modified has reverted to True.  Arrrrrg.
Title: Re: Ribbon custom buttons: How to control their size?
Post by: chrispitude on April 03, 2013, 12:51:39 PM
Thanks for posting the solution to this. Although it's annoying to have to keep changing the autoscale setting back, at least there is some kind solution to this silliness.