I'm trying to fill the combo box, which is on a toolbar in the vsct file. How do I specify the items in the combo? It compiles fine, but no items show up when debugging.
<Combos>
<Combo guid="guidIDEToolbarCmdSet" id="cmdEnv" priority="0x0100" type="DropDownCombo" defaultWidth="130" idCommandList="comboItems">
<Parent guid="guidIDEToolbarCmdSet" id="ToolbarGroup"/>
<CommandFlag>IconAndText</CommandFlag>
<CommandFlag>CommandWellOnly</CommandFlag>
<Strings>
<ButtonText>Environment:</ButtonText>
<CommandName>Dev</CommandName>
<CommandName>UserTest</CommandName>
<CommandName>LiveTest</CommandName>
<CommandName>LiveDebug</CommandName>
</Strings>
</Combo>
</Combos>
�
The items of a combo box are provided by an additional command (the one specified by the
idCommandList
attribute); just adding multipleCommandName
elements to the combobox definition within theVSCT
file won´t work.The actual items can be filled by the list command´s execute handler, for instance: