Show acceleration key in toolbar button

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

Guest

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
 
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 :-)
 
Back
Top