News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Ribbon custom buttons: How to control their size?

Started by gwideman, January 05, 2012, 11:28:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gwideman

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

AndyW

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.
Live life with an open mind

gwideman

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!

gwideman

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.

chrispitude

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.

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 210 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1058KB.
Tokens: post-login.
Cache hits: 13: 0.00413s for 26,764 bytes (show)
Cache misses: 2: (show)
Queries used: 16.

[Show Queries]