ListBox control
A ListBox control contains a series of predefined text values. Each ListBox control is linked to an symbolic variable. When the selection in the control changes, the variable's value is updated accordingly. The variable itself can be used in conditions elsewhere; this allows you to use list boxes to control the installer's actions or component selection.
To define the list values that are shown in the control, right-click on the control and choose New List Value from the popup menu. This creates a new List Value item where you can define the display text and the associated value. Repeat this procedure for all the values that must go into the list.
The order in which the list values appear as children of the ListBox control in the Dialogs tree determines the order in which they appear in the control, unless you check the Sorted option (see below). You can move the list values up and down in the tree to change the list order.
Tip: To change the tab and Z-order of a control in a dialog box (i.e., the order in which they are drawn and how they appear "on top" of each other), select the control in the dialog/control tree in the left pane on the Dialogs project page, then use Ctrl+Up and Ctrl+Down to move the control up or down in the order. These keystrokes are shortcuts for the Move Up and Move Down commands on the control's context menu.
Attributes
The following attributes and options are available.
Attribute | Description |
---|---|
Control name | Enter the internal name for the control. This name is for use in InstallMate only; it is not used in the installer. All control names must be unique within their parent dialog box. |
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 ListBox controls, you should select Automatic. See Dialog control IDs for an explanation of the available control IDs and their usage. |
Symbol name | Enter the name of the symbolic variable to which the control must be linked, or click ... (browse) to open the Select Symbolic Variable dialog box that allows you to select a variable from the project. The control's will select the list item that corresponds to the value of the linked variable and will be updated automatically whenever the variable's value changes. Conversely, the variable's value will be updated if the user selects a different value from its list. |
Indirect symbol | 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 monitored and updated by the control. With a direct link, the variable specified by the Symbol name attribute itself is monitored and updated. |
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). |
Sort list items | Check this box to sort the list values in the list alphabetically; clear it to keep them in the order in which they appear in the project. |
Enabled Tab stop Group Border Sunken Client edge Visible Transparent Don't mirror |
These are all standard control styles; see Dialog control styles for a description. |
Condition | Enter the display condition for the control or leave empty to display the control unconditionally. See Dialog control conditions for more information. |