Insepctor Command Bars and Buttons

  • Thread starter Thread starter Sanjay Singh
  • Start date Start date
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
 
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.
 
Back
Top