Bewerken

Share via


Control Table

The Control table defines the controls that appear on each dialog box.

The Control table has the following columns.

Column Type Key Nullable
Dialog_ Identifier Y N
Control Identifier Y N
Type Identifier N N
X Integer N N
Y Integer N N
Width Integer N N
Height Integer N N
Attributes DoubleInteger N Y
Property Identifier N Y
Text Formatted N Y
Control_Next Identifier N Y
Help Text N Y

 

Columns

Dialog_

External key to the first column of the Dialog table, the name of the dialog box.

Control

Name of the control. This name must be unique within a dialog box but can be repeated on different dialog boxes. The Control column combined with the Dialog_ column form the primary key to this table.

Type

The type of the control. For a list of control types, see Controls.

X

Horizontal coordinate of the upper-left corner of the rectangular boundary of the control. This must be a non-negative number. See Position Control Attribute.

Y

Vertical coordinate of the upper-left corner of the rectangular boundary of the control. This must be a non-negative number. See Position Control Attribute.

Width

Width of the rectangular boundary of the control. This must be a non-negative number. See Position Control Attribute.

Height

Height of the rectangular boundary of the control. This must be a non-negative number. See Position Control Attribute.

Attributes

A 32-bit word that specifies the bit flags to be applied to this control. This must be a non-negative number, and the allowed values depend upon the type of control. For a list of all control attributes, and the value to enter in this field, see Control Attributes.

Property

The name of a defined property to be linked to this control. Radio button, list box, and combo box values are tied into a group by being linked to the same property. This column is required for active controls.

Text

A localizable string used to set the initial text contained in a control. The string can also contain embedded properties. For the syntax of a formatted string containing properties see the MsiFormatRecord function. Specify the size, font, and color of the text by prefixing the text string with {\style}, where style is a text style authored into the TextStyle column of the TextStyle table. The text string is truncated if it is too long to fit on to the control. The text string may be blank.

Special authoring of the Formatted text string in this field is required if the text is to be displayed by a Text Control located on a dialog box having the TrackDiskpace attribute. This is the case specified by the TrackDiskSpace Dialog Style Bit appearing in the Attributes of the Dialog table. In this case, if the Formatted string in the Text column of the Control table begins with "[" and ends with "]" then you must add a space at the end of the string. For example, if DlgTextFont is a property that will be set to "{\DlgFontBold}" the formatted string "[DlgTextFont]MyText[ProductName] " requires the space at the end after the closing bracket. This extra space is required by the installer to correctly display the text in the Text control.

You can enter a short descriptive text string for the VolumeCostList, ListView, DirectoryList, and the SelectionTree controls. This text is not seen by the user but it can be read by screen readers as the description of the control.

See also Accessibility.

Control_Next

The name of another control on the same dialog box and an external key to the second column of the Control table. If the focus in the dialog box is on the control in the Control column, hitting the tab key moves the focus to the control listed in the Control_Next column. Therefore this column is used to specify the tab order of the controls on the dialog box. The links between the controls must form a closed cycle. Some controls, such as static text controls, can be left out of the cycle. In this case, this field may be left blank.

See also Accessibility.

Help

Optional, localizable text strings that are used with the Help button. The string is divided into two parts by a separator character (|). The first part of the string is used as ToolTip text. This text is used by screen readers for controls that contain a picture. The second part of the string is reserved for future use. The separator character is required even if only one of the two kinds of text is present.

Remarks

The integer values for x, y, width, and height are in the installer units, not dialog units. An installer unit is equal to one-twelfth the height of the 10-point MS Sans Serif font size. Coordinates for the controls are relative to the billboard.

Validation

ICE03
ICE06
ICE17
ICE20
ICE23
ICE31
ICE32
ICE34
ICE45
ICE46
ICE95