Insepctor Command Bars and Buttons

S

Sanjay Singh

Do Insepctor command bars and buttons have to be created inside an
InspectorWrap class so that they have uniques tags i.e. the same button on
two different inspectors will have different tags.

This slows down the opening of the inspector as the button has to be created
for each inspector.

Is it possible to create the buttons in some place like the OutAddin class
so that the button need only be created once and then can be used on each
Inspector.

Will this make the addin unstable?
I have had a lot of stability problems due to commandbars on inspectors. I
figured out that the solution is to use a InspectorWrap which I have
working.
The last thing is to speed up the creation of the buttons.

Thanks in advance
Sanjay
 
K

Ken Slovak - [MVP - Outlook]

If 3 Inspectors are open at the same time and your code creates one button
or a button for each with a shared Tag property then clicking the button in
one Inspector will execute it in all three open Inspectors. You need unique
Tags for each. I don't find using an Inspector wrapper slows things down in
any appreciable way. See my answer to your previous question for an example
of an Inspector wrapper that creates buttons.
 

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