Combo Box object

On the Graphics tab, in the Active Objects group, click Combo Box to select a single label from a combo-box list of labels.

If the list is longer that the space allotted, a scroll bar is enabled for the list. During runtime, if you select a label from the list, the combo-box hides itself and the selected label displays in the combo box.

Double-click on the combo-box object to open the Object Properties dialog.
Figure 1. Object Properties: Combo Box

You can use this dialog to set the following parameters:

Data Sources

Use the Data Sources dialog to configure the items/labels that will be displayed in the Combo Box object.
Figure 3. Data Sources dialog

  • Type combo box: Select the type of data source that you want to use, and the click the Settings… button to configure the source. Each type of source is described in detail below.
  • Field field (for Text File and Database only): Specify which field/column of the data source to read from.
  • Reload field (for Text File and Database only): Enter a tag name. When the value of the specified tag changes, the combo box will reload the labels from the data source.

Type: Static Labels

When Type is set to Static Labels, you can configure the following settings:
Figure 4. Static Labels dialog

Enter your labels — with one label per line — just as if you were editing a plain text file. You can include tags or expressions in a label by enclosing them in curly brackets. For example: Tank #1 in area {AreaNameTag}.

The labels are not sorted in any way, so be sure to put them in the order you want them displayed during runtime. The first line is position 0, the second line is position 1, and so on.

Click OK when you're done.

Type: Array Tag

When the Type is set to Array Tag, you can configure the following settings:
Figure 5. Array Tag dialog

Click OK when you're done.

Type: Text File

When the Type is set to Text File, you can configure the following settings:
Figure 6. Grid Data – Text File dialog

Click OK when you're done.

Type: Database

When the Type is set to Database, you can configure the following settings:
Figure 7. Database Configuration dialog

Please refer to the Database Configuration dialog for further information about this dialog.