Discussion:
Adding Inspector Toolbars when Previous or Next are pressed
(too old to reply)
Sanjay Singh
2004-12-13 03:32:35 UTC
Permalink
I have created an addin using wrapper classes etc and it all works great
except ...

I add toolbar buttons to the Standard toolbar on a NewInpsector event. Each
button is given a unique tag to prevent the "multiple button click problem"
if more than one inspector is opened.

It all works as expected. My problem however is that if the uses the
Previous and Next buttons in an open Inspector to move between e-mails then
extra buttons get added because a NewInspector event is fired each time.

What can I do to make sure that I only add a new button when a real new
inspector is created?

Thanks in advance
Sanjay
Word Heretic
2004-12-13 04:56:50 UTC
Permalink
G'day "Sanjay Singh" <***@standss.com.fj>,

The form is global, thus you can read the instancing.

Eg

Public TheDamnForm as MyDamnedForm

..

Sub Something()
...

if TheDamnForm is nothing then
'create and add
end if

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice
Post by Sanjay Singh
I have created an addin using wrapper classes etc and it all works great
except ...
I add toolbar buttons to the Standard toolbar on a NewInpsector event. Each
button is given a unique tag to prevent the "multiple button click problem"
if more than one inspector is opened.
It all works as expected. My problem however is that if the uses the
Previous and Next buttons in an open Inspector to move between e-mails then
extra buttons get added because a NewInspector event is fired each time.
What can I do to make sure that I only add a new button when a real new
inspector is created?
Thanks in advance
Sanjay
Loading...