User:Jcreer/SMS:DMI Text Elements: Difference between revisions
From XMS Wiki
Jump to navigationJump to search
Line 122: | Line 122: | ||
==Attributes== | ==Attributes== | ||
=====Attribute @ ''<alignH>''===== | |||
{|class="wikitable" | |||
|- | |||
|width="70"|'''Info''' | |||
|width="530"|Align text horizontally in a text box. | |||
|- | |||
|'''Values''' | |||
|“BOTTOM” | |||
“TOP” | |||
“CENTER’ | |||
|- | |||
|'''Version''' | |||
|1 | |||
|- | |||
|'''Used by''' | |||
|text_box | |||
|} | |||
=====Attribute @ ''<alignV>''===== | |||
{|class="wikitable" | |||
|- | |||
|width="70"|'''Info''' | |||
|width="530"|Align text vertically in a text box. | |||
|- | |||
|'''Values''' | |||
|“BOTTOM” | |||
“TOP” | |||
“CENTER’ | |||
|- | |||
|'''Version''' | |||
|1 | |||
|- | |||
|'''Used by''' | |||
|text_box | |||
|} | |||
=====Attribute @ ''<blue>'', Attribute @ ''<green>'', Attribute @ ''<red>''===== | =====Attribute @ ''<blue>'', Attribute @ ''<green>'', Attribute @ ''<red>''===== | ||
{|class="wikitable" | {|class="wikitable" |
Revision as of 19:10, 6 March 2015
The Dynamic Model Interface offeres a number of ways to format and adjust text.
Elements
Element <color>
Info | The color of an item, expressed in red, green and blue values ranging from 0 to 255. All 0 values for red, green and blue is black. Added in SMS 11.2. |
Versions | 1, 2 |
Attributes | none |
Children | red, green, blue |
Used by | text_style |
Example |
This would change the text to a bright red color. <text_style> <color> <red>255</red> <green>0</green> <blue>0</blue> </color> <text_style> |
Element <edit_box>
Info | Widget that displays text or numbers. If <type> not specified, default to double. |
Versions | 1, 2 |
Attributes | none |
Children | type, default, unique_name, range, optional, dependency, text_style |
Used by | item, row, column |
Example |
<edit_box> <type>double</type> <range>0, 2.2</range> <default>1.0 </default> <unique_name>edtBox5</unique_name> <optional></optional> <dependency>…</dependency>… </ edit_box |
Element <text_box>
Info | Widget that displays text that is not editable. |
Versions | 1, 2 |
Attributes | none |
Children | text, dependency, unique_name, alignH, alignV, text_style |
Used by | item, row, column |
Example |
<text_box> <text>Time Step:</text> <unique_name>Transport_TS</unique_name> <alignH>LEFT</alignH> <dependency>…</dependency>… </text_box> |
Element <text_style>
Info | Holds the style options for the text. Added in SMS 11.2. |
Versions | 1, 2 |
Attributes | none |
Children | none |
Used by | group, item, text_box, combo_box, edit_box, all elements starting with “custom_control”, check_box, options |
Example | This would bold the text when the value in the edit_box is less than 0.0.
<edit_box> <unique_name>edtA</unique_name> <default>1.0</default> <text_style> <bold></bold> <condition>edtA LESS_THAN 0.0</condition> <text_style> </edit_box> |
Attributes
Attribute @ <alignH>
Info | Align text horizontally in a text box. |
Values | “BOTTOM”
“TOP” “CENTER’ |
Version | 1 |
Used by | text_box |
Attribute @ <alignV>
Info | Align text vertically in a text box. |
Values | “BOTTOM”
“TOP” “CENTER’ |
Version | 1 |
Used by | text_box |
Attribute @ <blue>, Attribute @ <green>, Attribute @ <red>
Info | A color. Ranges from 0 to 255. Added in SMS 11.2. |
Values | integer (0 to 255) |
Version | 1 |
Used by | color |
Attribute @ <bold>
Info | Sets the text to be bolded when this attribute is used. Added in SMS 11.2. |
Values | none |
Version | 1 |
Used by | text_style |
Attribute @ <italic>
Info | Sets the text to be italicized when the element is specified. Added in SMS 11.2. |
Values | none |
Version | 1 |
Used by | text_style |
Attribute @ <strike_through>
Info |
Sets the text to have a line through the middle when the element is specified. Added in SMS 11.2. |
Values | none |
Version | 1 |
Used by | text_style |
Attribute @ <text>
Info |
Text that is displayed in the SMS user interface. |
Values | any text string |
Version | 1 |
Used by | group, item, text_box, check_box, option, x_column, y_column, column, row, display_options, menu_item declare_page executable |
Attribute @ <text_size>
Info |
Sets the point size of the text. Ranges from 8 to 20. Added in SMS 11.2. |
Values | integer (8 to 20) |
Version | 1 |
Used by | text_style |
Attribute @ <type>
Info |
For <display_options> defines point, or arc |
Values |
display_options
edit_box
|
Version | 1 |
Used by | coverage, display_options, edit_box |
Attribute @ <underline>
Info |
Sets the text to be underlined when this attribute is specified. Added in SMS 11.2. |
Values | none |
Version | 1 |
Used by | text_style |