Button works in first window only

R

Rambalac

I'm making addin for some office applications, it's just one button.
I'm using C++.
It works fine while i use one Word window only. But when i start new Word or
open some document in the first window so it opens new window the button
doesnt work in that new window, old one is still fine.
 
R

Rene

Hi,

Rambalac said:
I'm making addin for some office applications, it's just one button.
I'm using C++.
It works fine while i use one Word window only. But when i start new Word
or
open some document in the first window so it opens new window the button
doesnt work in that new window, old one is still fine.

I think you need: .Tag in the button decleration, then it works...

With Button
.Style = msoButtonIcon
If wwApp.LanguageSettings.LanguageID(msoLanguageIDUI) <> 1031
Then
.Caption = "Test"
.ToolTipText = "Test"
.Tag = "Test"
....
 
R

Rambalac

Yes, i found it already :/
Tag was the key, though there is nothing about it in documentation (or i'm
bad finding it)
 

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