Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines an element that the user can interact with. There are four kinds of Buttons, as follows: Button, MenuButton, SplitDropDown, and Swatch.
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. |
priority |
Optional. A numeric value that specifies the priority. |
type |
Optional. An enumerated value that specifies the kind 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. |
||||||||||||||||||||||||||
Icon |
Optional. The icon associated with 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 |
---|---|
Groups Button elements. |
Example
<Button guid="cmdSetGuidMyProductCommands" id="cmdidAddWidget"
priority="0x0040" type="Button">
<Parent guid="cmdSetGuidWidgetCommands" id="groupIDFileEdit">
<Icon guid="guidWidgetIcons" id="2"/>
<CommandFlag>DefaultInvisible</CommandFlag>
<CommandFlag>DynamicVisibility</CommandFlag>
<Strings>
<ButtonText>&Add Widgit</ButtonText>
</Strings>
</Button>