
Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
>I have a custom toobar that I create calling getcustomUI in connect module.
> In the xml that I create on the fly i have a dropDown box. I load dropDown
[quoted text clipped - 13 lines]
>
> Goran
Hi Ken,
IRibbonExtensibility_GetCustomUI is called only once when the Inspector of
that type(i.e. Microsoft.Outlook.Mail.read) loads the first time, and this
is when UI gets created and controls assign their IDs. Right? How can create
new control and assign unique controlID to a control every time different
Inspector opens, when this prosedure run only once? How can I dynamically
create control when Inspector opens? I could do this with CommandBars, where
I put the code to create new control in New Inspector event that gets called
every time inspector opens, but not with ribbons.
Thanks for your help,
Goran
> Since you have to supply the controlID for the ribbon control you want
> invalidated are you supplying a unique controlID, where each dynamic control
[quoted text clipped - 17 lines]
> >
> > Goran
Ken Slovak - [MVP - Outlook] - 08 Apr 2008 16:52 GMT
That's correct. So any change made to the dynamic content would affect every
open Inspector and every one opened after that. That's a ribbon limitation
that wasn't very well thought out despite our bugs and complaints during the
beta.
Not much you can do about that really with a combobox control. I try to
avoid them for that and other reasons, as I mentioned earlier to you in this
or another thread. What I usually use instead, although it's not a complete
substitute, is the dynamic menu control. I can supply different content to
each Inspector based on invalidation of the control and supplying specific
content based on the ActiveInspector.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> Hi Ken,
>
[quoted text clipped - 14 lines]
>
> Goran
goran - 08 Apr 2008 17:07 GMT
Thank you Ken.
> That's correct. So any change made to the dynamic content would affect every
> open Inspector and every one opened after that. That's a ribbon limitation
[quoted text clipped - 26 lines]
> >
> > Goran