Specifying Grid Cells as Combo Boxes

By default, grid cells are displayed in the Dashboard as simple edit boxes (with no minimum or maximum value and a default value of 0). You can specify minimum and maximum values, and edit other grid cell properties (i.e., controlling whether they are edit boxes, check boxes or combo boxes) by clicking the blue text corresponding to that particular cell in the “Value Properties” column.

The second radio button allows you to define the grid cell as a Combo Box.  If this option is selected, this portion of the dialog becomes active:

You add Value/Label pairs to the Combo Box by entering a Value and a Label, and pressing the Add button.  (If you omit a Label, the Value is used for the Label.) Once you have added one or more Value/Label pairs, you can edit them or remove them from the list using the Change and Remove buttons, and change the order they appear in the list using the Up and Down buttons. If you select Auto-sort, they will automatically be sorted into alphabetical order when the control appears in the Dashboard.

   Note: You cannot specify a link or expression in the Value field.  In fact, this field only accepts numbers without units.  If the Data element has dimensions, these fields assume that the value is being specified in the display units of the Data element (which is displayed at the top of the dialog).

   Note: If the item is a condition, the two choices default to True and False, and you cannot add or delete any choices. You can change the labels if required (e.g., On and Off). 

The Default is a drop-list with the labels for all of the choices in the list. This Default can be used in conjunction with an optional Button control that the Author can provide in a Dashboard that allows the Player user to reset all input controls to default values.

   Note: Within GoldSim, you can reset all of the input controls in a Dashboard to their default values by right-clicking anywhere in the Dashboard, and selecting Set to Default Values.

If the item is a vector or a matrix, a Default choice is specified for each entry in the array via a Default Values… button, which displays the following dialog:

You can specify the default choice for each array item individually, or specify a single choice and apply it to all entries.

Related Topics…

Learn more about: