CommandBarButton problem

  • Thread starter Linas Mikutaitis
  • Start date
L

Linas Mikutaitis

Hi all,

I have a problem dynamicly adding/deleting buttons in Word 2003 C# COM
Add-in toolbar (created by add-in). The toolbar isn't refreshed on all Word
documents windows. Here are reprod. steps:
1. User presses some add-in toolbar button and there is a
MsoButtonStyle.msoButtonCaption type button with some caption created
2. Open (or make new)/close some Word documents (make a few - 3 or more -
Word documents windows)
3. When user again presses some button I delete in step 1 created button but
changes in the toolbar are visible only on some documents windows (eg.: if
you have 3 documents, the toolbar in one of them remains with deleted button
visible). The same happens if I try to hide the button (set Visible to
false) or just change button caption - still changes are applied not on
every document window opened.
How to ensure that toolbar always gets refreshed in every document window?

thanks,
Linas
 
E

Eugene E. Starostin

Hello Linas,

There is a problem with refreshing command bars when you delete
buttons and there is no solution. I suggest to enable / disable the buttons.

Eugene Starostin
 

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