Toolbar images

J

Jacques Cooper

Hello,

I developed a VB6 Word Add-In
with a toolbar. The add-in works OK.

However, I changed the bitmap images
of the toolbar buttons, but Word still displays
the old bitmap images (the add-in loads
the bitmap images at run-time from disk
files mybutton1.bmp, mybutton2.bmp,...)

How do I get Word to use the new
bitmap images?

TIA,
Jacques
 
W

Wei-Dong Xu [MSFT]

Hi Jacques,

Thank you for posting in MSDN managed newsgroup!

From my understanding to this issue, you're going to change the face icon of your toolbar buttons in word.

Based on my experience, I'd suggest you can use the "PasteFace" method of CommandBarButton Object to change the icon for the toolbar button.
Before using this method, you will need to copy the bmp icon file into the clipboard. Then use the PasteFace method to change the icon.

Please feel free to let me know if you have any further questions.

Does this answer your question? Thank you for using Microsoft NewsGroup!

Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Z

Zweitze de Vries

Maybe your old button was never destroyed, and your new version does not
overwrite existing buttons?
Remember that Word toolbar buttons are added to Normal.dot by default.
 

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