Command buttons when using word as email button

  • Thread starter tommy_bergstrand
  • Start date
T

tommy_bergstrand

I have a addin where I add a new send button which stores the mail in
another system besides sending it.

When I don't use Word as editor I can keep track of which inspector
that should handle a button event by using the really good approach
with wrappers found in

http://www.slovaktech.com/code_samples.htm#InspectorWrapper

But I haven't found a solution that works when I switch to use word as
editor.

Anyone who has a solution to this? Using Outlook 2002 and 2003.

Best regards
Tommy
 
K

Ken Slovak - [MVP - Outlook]

Use the Word object model in your Inspector wrapper to handle
Word.WindowActivate. That fires when your WordMail window is active. If you
have created unique Tag properties for each button you can then use the Key
property in the wrapper class to see if the button has a Tag that ends in
the Key value and starts with your unique Tag string.
 

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