How to toggle an image/face of a button in a menu?

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

Guest

I created a macro, and added it to a custom menu. I also paste an image to
it. I want to know if it's possible for the image to toggle whenever the
user clicks on the button. For example, the 'Bold' button, when I click on
it, the image shows that it is selected. When I click on it again, it gets
deselected.
 
Hi =?Utf-8?B?a2NrYw==?=,
I created a macro, and added it to a custom menu. I also paste an image to
it. I want to know if it's possible for the image to toggle whenever the
user clicks on the button. For example, the 'Bold' button, when I click on
it, the image shows that it is selected. When I click on it again, it gets
deselected.
Theoretically it's possible. Depending on the version of Word involved, it
could be tricky to implement. It would certainly have to be done as part of
the macro already attached to the button.

Best place to pursue this question would be in one of the word.vba newsgroups.
Be sure to mention the version of Word involved.

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 :-)
 
I agree that a vba newsgroup would be better and will look out for a post.

But I disagree that it's difficult - to emulate the Bold button just
requires toggling the State property (but be aware that the template
containing the toolbar will be flagged as changed by this action). To
actually change the icon, it's best to have two different icons and toggle
the visible property of both so that only the one you want is visible at the
time you want it..
 
Hi Tony,
But I disagree that it's difficult - to emulate the Bold button just
requires toggling the State property (but be aware that the template
containing the toolbar will be flagged as changed by this action). To
actually change the icon, it's best to have two different icons and toggle
the visible property of both so that only the one you want is visible at the
time you want it..
Not difficult - tricky. And that depends on under which circumstances it
should toggle...

Cindy Meister
 

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