| Reference information | |
|---|---|
| Project page | Installer Dialogs |
| Related topics | Working with attribute panes |
A CheckBox control represents a yes/no option. It displays the actual check box plus a text label, bitmap, or icon image. To display a bitmap or icon image in a CheckBox control, you must add the desired bitmap or icon on the Bitmaps or Icons project page, then select the control's Caption type and set the control's Caption attribute to the name of the desired bitmap or icon image.
Each CheckBox control is linked to a product variable. When the CheckBox control state changes, the linked variable's value is updated according to the values specified by the Checked and Unchecked attributes (see below). The variable itself can be used in conditions elsewhere; this allows you to use check boxes to control the installer's actions or component selection.
When running on Windows XP and later with visual themes enabled, CheckBox
controls appear not themed if:
The Windows Installer equivalent is the CheckBox
control.
This pane contains the following attributes and options.
| Attribute | Description | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Control ID |
Select a control ID from the drop-down list or type a numerical ID to use for this control. All controls within a dialog must have different control IDs. For most controls, you should select Automatic; for PushButton controls, one of the standard IDxxx values is generally recommended. See Dialog Control IDs for an explanation of the available control IDs and their usage. |
||||||||||||||||||||||
| Name | Enter the internal name for the control. This name is for use in Tarma ExpertInstall only; it is not used in the installer. All control names must be unique within their parent dialog box. | ||||||||||||||||||||||
| Caption type |
Select the desired caption type from the drop-down list:
|
||||||||||||||||||||||
| Caption |
Depending on the Caption type selection, enter one of the following:
|
||||||||||||||||||||||
| Symbol name |
Enter the name of the product variable to which the control must be linked, or click ... (browse) to open the Select Product Variable dialog box that allows you to select a variable from the project. The named variable is updated when the state of the check box changes: if the box is checked, the variable is assigned the value specified in the Checked attribute (see below); if unchecked, the Unchecked value is used. |
||||||||||||||||||||||
| Indirect | Check this box to make the Symbol name link indirect; clear it for a direct link. If the link is indirect, the variable specified in the Symbol name field is used to obtain the name of a second variable, and it is this second variable whose value is changed by the control. With a direct link, the variable specified by the Symbol name attribute itself is changed. | ||||||||||||||||||||||
| Unchecked | Enter the value that must be assigned if the CheckBox control is in the unchecked state. | ||||||||||||||||||||||
| Checked | Enter the value that must be assigned if the CheckBox control is in the checked state. | ||||||||||||||||||||||
| Condition | Enter the display condition for the control or leave empty to display the control unconditionally. See Dialog Control Conditions for more information. | ||||||||||||||||||||||
| Font | Select the font style for the text in the control by clicking ... (browse) to open the Select Font Style dialog. If no font style is selected, the control uses the parent dialog's font style. You can remove the font style by clicking X (clear). | ||||||||||||||||||||||
| Visible Enabled Tab stop Group Border Sunken Client edge Transparent Don't mirror |
These are all standard control styles; see Dialog Control Styles for a description. Note: If you select Transparent, then the Backgnd color option (below) will be ignored. |
||||||||||||||||||||||
| Multiline | Check this box to allow the control's caption to wrap around to the next line if the text width exceeds the control's width; clear it to restrict the caption to a single line. In the latter case, it will be clipped if it exceeds the control's width. | ||||||||||||||||||||||
| Flat |
Check this box to make the check box appear flat; clear it for a beveled 3D edge. Note: This option does not have any effect when used under Windows XP with visual themes enabled; however, if you also select Transparent, the control reverts to its non-themed appearance and Flat can be used. |
||||||||||||||||||||||
| Right button | Check this box to display the check box to the right of the caption; clear it to display the check box to the left. | ||||||||||||||||||||||
| Push-like | Check this box to make the check box appear as a PushButton control; clear it for a regular check box. With this option checked, the control's "checked" state appears as a pushed-in button; its "unchecked" state is a popped-up button. | ||||||||||||||||||||||
| H | Select the desired horizontal alignment of the control's caption from the drop-down list. | ||||||||||||||||||||||
| V | Select the desired vertical alignment of the control's caption from the drop-down list. | ||||||||||||||||||||||
| Icon size |
Select the desired icon size for the control. This option only has effect if the Caption type is set to Icon. Note: If the selected image size is not present in the icon file, then the system scales one of the other icon images to the desired size. The resulting image may be less than satisfactory; in that case, you should edit the original icon file and add an image of the required size. |
||||||||||||||||||||||
| Color |
Select the desired text color from the drop-down list. The following choices are available:
Note: The actual display colors depend on the Windows' settings. If the user has selected a different color scheme, then the control will use the appropriate colors from that scheme. |
||||||||||||||||||||||
| Backgnd |
Select the desired background color from the drop-down list. The following choices are available:
Note: The actual display colors depend on the Windows' settings. If the user has selected a different color scheme, then the control will use the appropriate colors from that scheme. Note: If you select the Transparent (above), then the Backgnd color option will be ignored. |