Toolbar on Right

K

klav

I have a custom toolbar that I'd like to position on the right side of the
screen but I want the buttons to be displayed vertically rather than
horizontally. Is there a way to do this?
 
J

Jonathan West

Tony Jollans said:
No!

Strangely, though, text is displayed sideways.


If you set the Style property of each individual button on the toolbar to
msoButtonWrapCaption, then the caption displays horizontally even when the
toolbar is docked to one side. You can't access this display option from the
user interface, you have to set it using VBA. Once you have set the buttons
in a template, you can save the template and they will remain. Make sure you
have correctly set the CustomizationContext to your template before making
the changes.

You can set the wrapping caption for toolbar buttons, but not for menus that
you add to your toolbar.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
T

Tony Jollans

Thank you Jonathan,

That's an interesting side effect I didn't know about.

I sometimes put my menu bar at the left and wouldn't want to lose the real
estate horizontal text would take. I don't need to, and rarely do, read the
captions but I would prefer if they ran top to bottom facing inwards instead
of bottom to top facing outwards.
 
J

Jonathan West

Tony Jollans said:
Thank you Jonathan,

That's an interesting side effect I didn't know about.

I sometimes put my menu bar at the left and wouldn't want to lose the real
estate horizontal text would take. I don't need to, and rarely do, read
the
captions but I would prefer if they ran top to bottom facing inwards
instead
of bottom to top facing outwards.

The way I deal with this is to minimize button real estate by having a
highly abbreviated caption, and then having a longer description in the
tooltip.

Again, you can't set the tooltip through the user interface, but you can by
setting the Tooltip property in VBA.

By the way, this all only applies to buttons, it doesn't apply to
CommandbarPopup objects (menus). Menus have no Style property and so can't
have their text set to be horizontal when docked.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
K

klav

Thank you....this information was very helpful. Do either of you know of any
way to label a toolbar and have the label displayed along with the toolbar?
 
J

Jonathan West

klav said:
Thank you....this information was very helpful. Do either of you know of
any
way to label a toolbar and have the label displayed along with the
toolbar?

Floating toolbars have a caption that is the same as the name of the
toolbar. I don't know of any way to get that caption to show while the
toolbar is docked.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 

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