The ribbon combo is populated by XML when the control is initialized,
therefore it's not so great for dynamically populated lists. About the only
way I've found to do that is to actually create the ribbon XML on the fly
when GetCustomUI fires.
For dynamically populated controls I usually prefer to use the dynamicMenu
control, which has a getContent callback that's used to provide the XML for
the control. You still have to create that XML on the fly but you don't have
to create the entire ribbon XML on the fly. Of course the dynamicMenu
control doesn't have that textbox associated with it.
For combo's you get an onChange callback.
You might find the articles starting at
http://msdn2.microsoft.com/en-us/library/aa338202.aspx to be of interest.
The code samples are in C# and VB.NET, but they're simple and readable.
--
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
"goran" wrote in message
...
Thanks a lot as always Ken.
This thing worked, and I am able to route callbacks to my specific Wrapper
code. But now I am confused. I used to have dropdown control in inspector
wrapper that I declared as:
Private WithEvents CBInspectorDropdown As Office.CommandBarComboBox,
and then I pull the items from DB and populated this dropdown when
Inspector
opened. I also had _Change event for the dropdown where I would put the
code
to do something based on user selection. Now, I defined dropdown in xml.
How
can i reference that dropdown in my code in vb 6 and load with items in
the
runtime, get selected item etc.
thanks,
Goran