(MS-CUSTOMUI) - Editbox (Edit Box) - Microsoft Learn
(MS-CUSTOMUI) - Editbox (Edit Box) - Microsoft Learn
This element specifies an edit box control that allows a user to enter a string of text.
The following table summarizes the elements that are parents of this element.
ノ Expand table
Parent Elements
ノ Expand table
Attributes Description
The possible values for this attribute are defined by the XML schema
boolean datatype.
getEnabled (getEnabled Specifies the name of a callback function to be called to determine the
callback) enabled state of this control.
<button id="button"
getEnabled="IsButtonEnabled" />
The possible values for this attribute are defined by the ST_Delegate
simple type, as specified in section 2.3.2.
getImage (getImage Specifies the name of a callback function to be called to determine the
callback) icon of this control.
The possible values for this attribute are defined by the ST_Delegate
simple type, as specified in section 2.3.2.
Attributes Description
getKeytip (getKeytip Specifies the name of a callback function to be called to determine the
callback) suggested KeyTip of this control.
<button id="button"
getKeytip="GetButtonKeytip" />
The possible values for this attribute are defined by the ST_Delegate
simple type, as specified in section 2.3.2.
getLabel (getLabel Specifies the name of a callback function to be called to determine the
callback) label of this control.
The possible values for this attribute are defined by the ST_Delegate
simple type, as specified in section 2.3.2.
<button id="button"
getScreentip="GetButtonScreentip" />
The possible values for this attribute are defined by the ST_Delegate
simple type, as specified in section 2.3.2.
<button id="button"
getShowImage="IsButtonImageVisible" />
The possible values for this attribute are defined by the ST_Delegate
simple type, as specified in section 2.3.2.
<button id="button"
getShowLabel="IsButtonLabelVisible" />
<button id="button"
getSupertip="GetButtonSupertip" />
The possible values for this attribute are defined by the ST_Delegate
simple type, as specified in section 2.3.2.
getText (getText Specifies the name of a callback function to be called to determine the
callback) text that SHOULD be displayed in the control.
The possible values for this attribute are defined by the ST_Delegate
simple type, as specified in section 2.3.2.
getVisible (getVisible Specifies the name of a callback function to be called to determine the
callback) visibility state of this control.
<button id="button"
Attributes Description
getVisible="IsButtonVisible" />
The possible values for this attribute are defined by the ST_Delegate
simple type, as specified in section 2.3.2.
id (control identifier) Specifies the identifier for a custom control. All custom controls MUST
have unique identifiers. The identifier of a control SHOULD be passed to
callback functions to identify which control corresponds to the function
call.
The id, idQ, and idMso attributes are mutually exclusive. At least one of
these attributes MUST be specified.
The possible values for this attribute are defined by the ST_UniqueID
simple type, as specified in section 2.3.13.
The id, idQ, and idMso attributes are mutually exclusive. At least one of
these attributes MUST be specified.
The possible values for this attribute are defined by the ST_ID simple
type, as specified in section 2.3.5.
The id, idQ, and idMso attributes are mutually exclusive. At least one of
these attributes MUST be specified.
<customUI
xmlns="http://schemas.microsoft.com/office/2006/0
1/customui"
xmlns:ex="http://www.example.com">
<ribbon>
<tabs>
<tab idQ="ex:OtherTab" label="Shared
Tab">
<group id="MyGroup" label="My Group">
…
</group>
</tab>
</tabs>
</ribbon>
</customUI>
The possible values for this attribute are defined by the ST_QID simple
type, as specified in section 2.3.9.
image (custom image Specifies the relationship identifier for an image which SHOULD be used
identifier) as the icon for this control. This attribute is used to specify an embedded
picture that resides locally within the containing file.
The possible values for this attribute are defined by the ST_Uri simple
type, as specified in section 2.3.14.
imageMso (built-in Specifies the identifier of a built-in image which SHOULD be used as the
image identifier) icon of this control.
This specifies a custom button that SHOULD use the built-in image with
an identifier of "Bold".
The possible values for this attribute are defined by the ST_ID simple
type, as specified in section 2.3.5.
insertAfterMso Specifies the identifier of a built-in control that this control SHOULD be
(identifier of built-in inserted after. If the value of this attribute is not understood, it SHOULD
control to insert after) be ignored.
insertAfterQ (qualified Specifies the qualified identifier of a control that this control SHOULD be
identifier of control to inserted after. If the value of this attribute is not understood, it SHOULD
insert after) be ignored.
The possible values for this attribute are defined by the ST_QID simple
type, as specified in section 2.3.9.
insertBeforeMso Specifies the identifier of a built-in control that this control SHOULD be
(identifier of built-in inserted before. If the value of this attribute is not understood, it SHOULD
control to insert before) be ignored.
insertBeforeQ (qualified Specifies the qualified identifier of a control that this control SHOULD be
identifier of control to inserted before. If the value of this attribute is not understood, it SHOULD
insert before) be ignored.
The possible values for this attribute are defined by the ST_QID simple
type, as specified in section 2.3.9.
keytip (keytip) Specifies a string to be used as the suggested KeyTip for this control.
The possible values for this attribute are defined by the ST_Keytip simple
type, as specified in section 2.3.7.
Attributes Description
label (label) Specifies a string to be used as the label for this control.
The possible values for this attribute are defined by the ST_String simple
type, as specified in section 2.3.11.
maxLength (maximum Specifies an integer to be used as the maximum length of a string that
input string length) can be entered into the control.
This specifies an edit box control that can only accept strings up to 10
characters in length.
The possible values for this attribute are defined by the ST_StringLength
simple type, as specified in section 2.3.12.
onChange (onChange Specifies the name of a callback function to be called when the text in the
callback) control has been changed by the user.
<editBox id="editBox"
onChange="EditBoxTextChanged" />
The possible values for this attribute are defined by the ST_Delegate
simple type, as specified in section 2.3.2.
Attributes Description
screentip (screentip) Specifies a string to be shown as the screentip for this control.
The possible values for this attribute are defined by the ST_String simple
type, as specified in section 2.3.11.
For example, consider a button that does not display an icon, as follows:
showLabel (Show Label) Specifies whether this control displays its label.
This specifies a button that has a label, but does not show it. Even
though the label is hidden, it is provided to accessibility tools.
The possible values for this attribute are defined by the XML schema
boolean datatype.
sizeString (size string) Specifies a string whose size is used to determine the width of the text
input area of this control.
<editBox id="editBox"
sizeString="WWWWWWWWWWWWW" />
This specifies an edit box control that is wide enough to display the
string "WWWWWWWWWWWWW".
The possible values for this attribute are defined by the ST_String simple
type, as specified in section 2.3.11.
The possible values for this attribute are defined by the ST_String simple
type, as specified in section 2.3.11.
tag (tag) Specifies an arbitrary string that can be used to hold data or identify the
control. The contents of this attribute SHOULD be passed to any callback
functions specified on this control.
The possible values for this attribute are defined by the ST_String simple
type, as specified in section 2.3.11.
The possible values for this attribute are defined by the XML schema
boolean datatype.
The following XML schema fragment defines the contents of this element:
<xsd:complexType name="CT_EditBox">
<xsd:complexContent>
<xsd:extension base="CT_Control">
<xsd:attributeGroup ref="AG_Enabled"/>
<xsd:attributeGroup ref="AG_Image"/>
<xsd:attribute name="maxLength" type="ST_StringLength"
use="optional"/>
<xsd:attribute name="getText" type="ST_Delegate" use="optional"/>
<xsd:attribute name="onChange" type="ST_Delegate" use="optional"/>
<xsd:attribute name="sizeString" type="ST_String" use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>