Combo Element
Defines commands that appear in a combo box. There are four kinds of combo boxes, as follows: DropDownCombo, DynamicCombo, IndexCombo, and MRUCombo.
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute |
Description |
---|---|
guid |
Required. GUID of the GUID/ID command identifier. |
id |
Required. ID of the GUID/ID command identifier. |
defaultWidth |
Required. An integer that specifies a pixel width for the combo box. |
idCommandList |
Required. An ID that is sent to the active commmand target to retrieve the list of items to be displayed in the combo box. The ID will be in the same GUID scope as the control. |
priority |
Optional. A numeric value that specifies the priority. |
type |
Optional. An enumerated value that specifies the type of button. If not given, uses Button.
|
Condition |
Optional. See VSCT XML Schema Conditional Attributes. |
Child Elements
Element |
Description |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parent |
Optional. The parent element of the button. |
||||||||||||
CommandFlag |
Required. See Command Flag Element. The valid CommandFlag values for a Button are as follows.
|
||||||||||||
Strings |
Required. See Strings Element. The child ButtonText element must be defined. |
||||||||||||
Annotation |
Optional comment. |
Parent Elements
Element |
Description |
---|---|
Represents the collection of commands on the VSPackage toolbar. |
Example
<Combo guid="guidWidgetPackage" id="cmdidInsertOptions"
defaultWidth="100" idCommandList="cmdidGetInsertOptionsList">
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<ButtonText>Select Insert Options</ButtonText>
</Strings>
</Combo>
<Combo guid="guidWidgetPackage" id="cmdidInsertOptions"
priority="0x0500" type="DropDownCombo" defaultWidth="100"
idCommandList="cmdidGetInsertOptionsList">
<Parent guid="cmdSetGuidWidgetCommands" id="groupIDFileEdit">
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<ButtonText>Select Insert Options</ButtonText>
</Strings>
</Combo>