increase size of icons on toolbar

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have designed a cusom toolbar using built-in faces and my own macros as the
on-action. I want to make this toolbar larger, but when i enlarge the
buttons the face icons on the buttons remain the same size. how can i
enlarge these (without enlarging every button on every toolbar) ideally how
do i do it programmatically.
 
i have designed a cusom toolbar using built-in faces and my own macros as the
on-action. I want to make this toolbar larger, but when i enlarge the
buttons the face icons on the buttons remain the same size.

First, how do you enarge the buttons? Using the Large Icons option in the
Customize dialog box?

As far as I know, that's the only control you have over button size, but if
there's a different way, I'd be interested to see it. Post some sample code,
perhaps.
 
You are able to specify the width and height of a button but the icon remains
the same size and just sits in the centre of the button.

Application.CommandBArs(CommandBar Index).Controls(1).Width = x
Application.CommandBArs(CommandBar Index).Controls(1).Height = y

thanks,
ben
 
Thanks, Ben.

I see what you mean. And the sizing issue isn't restricted to just the built-in
faces; it's true if you copy something to the clipboard and .PasteFace onto the
button as well.

I suspect the .Height and .Width properties are implemented for the sake of some of
the other controls that can appear on toolbars (combo boxes, for example) and that
they ran out of caffeinated beverages the night before this shipped; somebody
probably fell asleep before they got round to disabling the properties for normal
command bar buttons.

Have you experimented with creating your own ersatz toolbar using a modeless user
form? Might that do the job instead?
 
And speaking of weird ...

Have you noticed what happens to the REST of your toolbars when you dock one of the
"inflated" ones?

Oooopsie.
 

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

Back
Top