Show acceleration key in toolbar button

H

hstijnen

When I create a toolbar button for a style, and connect the style to an
acceleration key, the acceleration key is showed in the tooltip of the button.
Now I have created a toolbar button for a macro and connected the macro with
an acceleration key. But in this case the acceleration key is NOT showed in
the tooltip of the button.

What can I do to make this happen?

Thanks,

Henk
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?aHN0aWpuZW4=?=,
When I create a toolbar button for a style, and connect the style to an
acceleration key, the acceleration key is showed in the tooltip of the button.
Now I have created a toolbar button for a macro and connected the macro with
an acceleration key. But in this case the acceleration key is NOT showed in
the tooltip of the button.

What can I do to make this happen?
You need to programmatically define the tooltip's text. Assuming the button is
the third one on a toolbar named "My buttons", the code would be something like
this:

CommandBars("My buttons").Controls(3).TooltipText _
= "Descriptive text Alt+A"

Notice the spaces in the text; those are deliberate. There's no way to tell Word
to "right-align" part of the text.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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