Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2004

Tip: Looking for answers? Try searching our database.

Adding Inspector Toolbars when Previous or Next are pressed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sanjay Singh - 13 Dec 2004 03:32 GMT
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 - 13 Dec 2004 04:54 GMT
G'day "Sanjay Singh" <sanjays@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

Sanjay Singh reckoned:

>I have created an addin using wrapper classes etc and it all works great
>except ...
[quoted text clipped - 12 lines]
>Thanks in advance
>Sanjay

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.