User:Jcreer/SMS:DMI Widgets and Dialogs Elements: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 29: Line 29:
     <dependency>…</dependency>…
     <dependency>…</dependency>…
  </ check_box >
  </ check_box >
|}
=====Element ''<combo_box>''=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"|
Widget that displays list of options.  Only 1 can be selected.  If no default is specified and the optional tag is present, then an empty option will be added to the combo box.  If there is no default tag, and no optional tag, then the first item will be default.
In version 2, if a combo box has [[SMS:Dynamic Model Interface Schema#Element <display_options_arc>|display_options_arc]], and is part of a dialog that is used as an arc attribute, then a limited set of display options will appear for the options of the combo box. The display option for each option of the combo box will only be line thickness and color. The display option is NOT saved at any point and will be reset every time SMS is opened.
|-
|'''Versions'''
|1, 2
|-
|'''Attributes'''
|none
|-
|'''Children'''
|width="530"|[[SMS:Dynamic Model Interface Schema#Element <option>|option]], [[SMS:Dynamic Model Interface Schema#Element <unique_name>|unique_name]], [[SMS:Dynamic Model Interface Schema#Element <optional>|optional]], [[SMS:Dynamic Model Interface Schema#Element <dependency>|dependency]], [[SMS:Dynamic Model Interface Schema#Element <text_style>|text_style]], [[SMS:Dynamic Model Interface Schema#Element <display_options_arc>|display_options_arc]]
|-
|'''Used by'''
| [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <row>|row]], [[SMS:Dynamic Model Interface Schema#Element <column>|column]]
|-
|'''Example'''
|width="530"|Creates a combo box with hours, minutes and seconds.  Hours is the default item.
<combo_box>
    <unique_name>cbxTransportUnits</unique_name>               
    <option>
      <text>hours</text>
      <default></default>
    </option>
    <option>
      <text>minutes</text>
</option>
<option>
      <text>seconds</text>
    </option>
    <dependency>…</dependency>…
</ combo_box >


|}
|}

Revision as of 15:11, 3 March 2015


Element <check_box>
Info Widget that displays text that is checked/unchecked.
Versions 1, 2
Attributes none
Children text, default, unique_name, dependency, export_text_checked, export_text_unchecked, text_style
Used by item
Example
<check_box>                       	
   <text>Calculate Sediment Transport</text>
   <default>checked</default>
   <unique_name>togCalcSedimentTransport</unique_name>
   <export_text_checked>ON</export_text_checked>
   <export_text_unchecked>OFF</export_text_unchecked>
   <dependency>…</dependency>…
</ check_box >
Element <combo_box>
Info

Widget that displays list of options. Only 1 can be selected. If no default is specified and the optional tag is present, then an empty option will be added to the combo box. If there is no default tag, and no optional tag, then the first item will be default.

In version 2, if a combo box has display_options_arc, and is part of a dialog that is used as an arc attribute, then a limited set of display options will appear for the options of the combo box. The display option for each option of the combo box will only be line thickness and color. The display option is NOT saved at any point and will be reset every time SMS is opened.

Versions 1, 2
Attributes none
Children option, unique_name, optional, dependency, text_style, display_options_arc
Used by item, row, column
Example Creates a combo box with hours, minutes and seconds. Hours is the default item.
<combo_box>
   <unique_name>cbxTransportUnits</unique_name>                	
   <option>
      <text>hours</text>
      <default></default>
   </option>
   <option>
      <text>minutes</text>
	</option>
	<option>
      <text>seconds</text>
   </option>
   <dependency>…</dependency>…
</ combo_box >