Lookign for sample of toolbar which only displayed in a specific inspector

J

Julia

Hello,

I am looking for source code(in VB 6.0 if possible)
of a toolbar which displayed only in a specific inspector,for example only
in the
contact inspector.
i dont know how to manage such a toolbar,when to delete it? should i
recreate it?
should i check if it is exist before create it?
how can i know if all the buttons appear on the toolbar?

10x
 
K

Ken Slovak - [MVP - Outlook]

Download the ItemsCB COM addin sample from the Resources page at
www.microeye.com. It shows an Explorer wrapper class that is used to
handle multiple Explorers. You would need to create an Inspector
wrapper that is similar to that. You can also Google for "Inspector
wrapper" and look at some of the code samples for that which I've
posted.

Within the Inspector wrapper you would create your buttons if
Inspector.CurrentItem.Class is olContact.

Always create any buttons, toolbars or menus using the Temporary =
True argument. Also, before you create such an item check to see if it
already exists and delete it if it does.

Your Click event handlers for the buttons would be located within the
Inspector wrapper class module, declared WithEvents, with a unique Tag
property for each one (also unique per Inspector) so you can handle
Click events for specific buttons even if multiple Inspectors are
open.
 
K

Ken Slovak - [MVP - Outlook]

No, you can have multiple Explorers open just as you can have multiple
Inspectors open at a time. If you need to handle both cases you should
be using both Explorer and Inspector wrapper collections.
 

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