B
- B@rney
Hi Guys'n Dolls!
I've been working with a Shared Office Add-In for a few weeks now.
Now one issue is bugging me. My Add-in checks, in the OpenDocument event,
whether or not my button should be visible. This is part of the business
logic, for some documents the add-in should be active and the button visible,
and for some not.
In the WindowActivate event I check a property and remove the button if the
add-in shouldn't be active for this document.
But, if I have multiple documents open, I get multiple click events from my
button!
This happens even if the other open documents don't have the button visible.
Please advice!
I've been working with a Shared Office Add-In for a few weeks now.
Now one issue is bugging me. My Add-in checks, in the OpenDocument event,
whether or not my button should be visible. This is part of the business
logic, for some documents the add-in should be active and the button visible,
and for some not.
In the WindowActivate event I check a property and remove the button if the
add-in shouldn't be active for this document.
But, if I have multiple documents open, I get multiple click events from my
button!
This happens even if the other open documents don't have the button visible.
Please advice!