User:Jcreer/SMS:DMI Text Elements: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
Line 146: Line 146:
   <text_style>
   <text_style>
  </edit_box>
  </edit_box>
|}
=====Element ''<text>''=====
{|class="wikitable"
|-
|width="70"|'''Info'''
|width="530"| Text that is displayed in the SMS user interface. 
|-
|'''Versions'''
| 1, 2
|-
|'''Attributes'''
|none
|-
|'''Children'''
|width="530"| none
|-
|'''Used by'''
| width="530"| [[SMS:Dynamic Model Interface Schema#Element <group>|group]], [[SMS:Dynamic Model Interface Schema#Element <item>|item]], [[SMS:Dynamic Model Interface Schema#Element <text_box>|text_box]], [[SMS:Dynamic Model Interface Schema#Element <check_box>|check_box]], [[SMS:Dynamic Model Interface Schema#Element <options>|options]], [[SMS:Dynamic Model Interface Schema#Element <x_column>|x_column]], [[SMS:Dynamic Model Interface Schema#Element <y_column>|y_column]]
|-
|'''Example'''
|width="530"|
|}
|}

Revision as of 22:39, 4 March 2015

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 <green>
Info The green element of a color. Ranges from 0 to 255. Added in SMS 11.2.
Versions 1, 2
Attributes none
Children none
Used by color
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 <red>
Info The red element of a color. Ranges from 0 to 255. Added in SMS 11.2.
Versions 1, 2
Attributes none
Children none
Used by color
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 <strike_through>
Info Sets the text to have a line through the middle. Added in SMS 11.2.
Versions 1, 2
Attributes none
Children none
Used by text_style
Example This would put a line through 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>
      <strike_through></strike_through>
      <condition>edtA LESS_THAN 0.0</condition>
  <text_style>
</edit_box>
Element <text>
Info Text that is displayed in the SMS user interface.
Versions 1, 2
Attributes none
Children none
Used by group, item, text_box, check_box, options, x_column, y_column
Example