Q
QnJ1bndpbg
Thanks. There was an additional trick to it as follows. By using the
visible property from the most recently opened (still open) window's toolbar
and saving the visible property when a toolbar closes to use when no already
open window exists the standard Outlook toolbar behaviour can be replicated.
Thanks,
Nick
wrote:
> When the window is closed, either Inspector or Explorer, check your
> toolbar's Visible and Enabled properties and persist that information
> somewhere. Use that the next time.
> >
>
> "Brunwin" <Brunwin> wrote in message
> news:0D8930D8-0D79-478C-901A-FB0644902719@microsoft.com...
> >I have two toolbars I've implemented in Outlook using VSTO 2005 SE - one
> > inspector commandbar and one explorer commandbar. At the moment they both
> > launch when the relevant window is launched and add themselves to the
> > commandbars list.
> > The flaw with this is that when the user right clicks on the toolbar area
> > and unticks my commandbar, hiding it, then shuts Outlook and reopens it my
> > commandbar naively reloads itself into the toolbar area. Really it should
> > wait until the user re-ticks it's name before it appears. To be able to
> > do
> > this I'd need to be able to either detect whether my commandbar is visible
> > or
> > detect when my commandbar is hidden and when it is made visible. I can't
> > seem to identify within the VSTO 2005 API a way to do this. I presume
> > though
> > that this is something that a commandbar should support so I expect I'm
> > just
> > not finding the right way to do it.
> > Does anyone know how I should be doing this and what properties/events I
> > need to use for it?
> > Thanks in advance
>
visible property from the most recently opened (still open) window's toolbar
and saving the visible property when a toolbar closes to use when no already
open window exists the standard Outlook toolbar behaviour can be replicated.
Thanks,
Nick
wrote:
> When the window is closed, either Inspector or Explorer, check your
> toolbar's Visible and Enabled properties and persist that information
> somewhere. Use that the next time.
> >
>
> "Brunwin" <Brunwin> wrote in message
> news:0D8930D8-0D79-478C-901A-FB0644902719@microsoft.com...
> >I have two toolbars I've implemented in Outlook using VSTO 2005 SE - one
> > inspector commandbar and one explorer commandbar. At the moment they both
> > launch when the relevant window is launched and add themselves to the
> > commandbars list.
> > The flaw with this is that when the user right clicks on the toolbar area
> > and unticks my commandbar, hiding it, then shuts Outlook and reopens it my
> > commandbar naively reloads itself into the toolbar area. Really it should
> > wait until the user re-ticks it's name before it appears. To be able to
> > do
> > this I'd need to be able to either detect whether my commandbar is visible
> > or
> > detect when my commandbar is hidden and when it is made visible. I can't
> > seem to identify within the VSTO 2005 API a way to do this. I presume
> > though
> > that this is something that a commandbar should support so I expect I'm
> > just
> > not finding the right way to do it.
> > Does anyone know how I should be doing this and what properties/events I
> > need to use for it?
> > Thanks in advance
>