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

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