label

<label> is similar to static text, but is always associated with another control. Currently, any control element may have an associated label, except for the following: <label>, <checkbox>, <radio>.

Attributes

The attributes for this element are described below:

name

Unique ID for this control.

control

The name (unique ID) of the control associated with this item. See description for a list of control types that may have an associated item.

position

Position of the item, relative to the associated control: above, below, left, or right. When resizing the form, the associated control is moved and resized according to the values of its auto-move and auto-size attributes, and then the item is repositioned relative to the new control size and position.

top

Top-most Y coordinate.

left

Left-most X coordinate.

width

Width of the control.

height

Height of the control.

text-align

(optional) Text alignment: left or right. By default, left alignment is assumed.

caption

(optional) A static text string to be displayed in the button. If no caption is provided, then Browse is used.

Accesskey

(optional) A character to be used as the keyboard accelerator for this button. For example, if accesskey=“x”, then pressing alt+x will set focus to the button, and invoke the dialog box. The accesskey character must appear in the caption of the button, otherwise, it is ignored. The character is drawn underlined.

tooltip

(optional) A static text string to be displayed as the tool tip mouse over help for this control. If no tooltip is specified, then no mouse over help is displayed.

Children

None.