Character Elements: Difference between revisions
From Smart LCD
| Line 90: | Line 90: | ||
== Scrolling String (STR_SCR) == | == Scrolling String (STR_SCR) == | ||
[[File:Properties STR SCR.png|right|728x728px]] | |||
[[File:STR SCR.png|128x128px]] | [[File:STR SCR.png|128x128px]] | ||
'''General''' | |||
Show the basic information of the element | |||
X and Y is the location of element on screen, reference point is element top-left corner | |||
Width and Height are in pixels | |||
top-left corner of the screen = 0,0 | |||
'''Style''' | |||
<u>Font</u> select font face | |||
<u>Font Size</u> for TTF only | |||
<u>Font Color</u> is the font face color | |||
<u>Background Color</u> only available with Transparent disable | |||
<u>Transparent</u> true for disable the Background Color box to be show | |||
<u>Mask</u> could be any char to "represent" as the char (Keep empty for normal operation) | |||
<u>Scroll</u> is true by default | |||
false to convert itself to String element (see STR for details) | |||
<u>Scroll Direction</u> can be Horizontal or Vertical | |||
<u>Scroll Pixels</u> defined the text scrolling speed (0=no scroll, negative value for reverse scroll) | |||
'''Format''' | |||
<u>Align</u> options are Left / Right / Center | |||
<u>Char Spacing</u> options are Default / Shrink | |||
'''Content''' | |||
<u>VP Resource</u> is the type of VP hold the text content (VP_STR by default) | |||
<u>VP Address</u> is the VP that hold the string content (all the string should be end with \0 (0x00)) | |||
<u>Length</u> is no. of Char going to display | |||
'''Properties Control (advance feature)''' | |||
<u>Enable VP</u> is none by default (element operate normally) | |||
Select a VP for real time element control. | |||
VP value will set to 1 as enable at power-on. It can be disabled (hidden) by a zero value | |||
<u>Font VP</u> is none by default (using the above selected font) | |||
Select a VP for real time font ID change | |||
VP value will copy the above ID at power-on | |||
<u>Foreground color VP</u> is none by default (using the above selected color) | |||
Select a VP for real time foreground color adjustment | |||
VP value will copy the above selected color at power-on | |||
<u>Backgound color VP</u> is none by default (using the above selected color) | |||
Select a VP for real time background color adjustment | |||
VP value will copy the above selected color at power-on | |||
<u>Transparent VP</u> is none by default (using the above option) | |||
Select a VP for real time transparent background control | |||
VP value will copy the above transparent config at power-on | |||
It can be enable by a non-zero value or disable by a zero | |||
<u>Scroll Pixel VP</u> is none by default (using the above value) | |||
Select a VP for real time scroll speed control (0=reserved, 1=fastest, 1000=slowest) | |||
VP value will copy the above Scroll Pixel config at power-on | |||
'''Preview''' | |||
<u>Preview Value</u> is only for displaying text in SGTools environment | |||
Revision as of 18:45, 12 May 2025
Static String (STS)

General Show the basic information of the element X and Y is the location of element on screen, reference point is element top-left corner Width and Height are in pixels top-left corner of the screen = 0,0
Style Font select font face Font Size for TTF only Font Color is the font face color Background Color only available with Transparent disable Transparent true for disable the Background Color box to be show
Format Align options are Left / Right / Center Char Spacing options are Default / Shrink
Content Static Test is the text content to be display
Properties Control (advance feature) Enable VP is none by default (element operate normally) Select a VP for real time element control. VP value will set to 1 as enable at power-on. It can be disabled (hidden) by a zero value Font VP is none by default (using the above selected font) Select a VP for real time font ID change VP value will copy the above ID at power-on. Foreground color VP is none by default (using the above selected color) Select a VP for real time foreground color adjustment VP value will copy the above selected color at power-on. Backgound color VP is none by default (using the above selected color) Select a VP for real time background color adjustment VP value will copy the above selected color at power-on. Transparent VP is none by default (using the above option) Select a VP for real time transparent background control VP value will copy the above transparent config at power-on. It can be enable by a non-zero value or disable by a zero
String Element (STR)

General Show the basic information of the element X and Y is the location of element on screen, reference point is element top-left corner Width and Height are in pixels top-left corner of the screen = 0,0
Style Font select font face Font Size for TTF only Font Color is the font face color Background Color only available with Transparent disable Transparent true for disable the Background Color box to be show Mask could be any char to "represent" as the char (Keep empty for normal operation) Scroll is false by default true to convert itself as Scrolling String element (see STR_SCR for details)
Format Align options are Left / Right / Center Char Spacing options are Default / Shrink
Content VP Resource is the type of VP hold the text content (VP_STR by default) VP Address is the VP that hold the string content (all the string should be end with \0 (0x00)) Length is no. of Char going to display
Properties Control (advance feature) Enable VP is none by default (element operate normally) Select a VP for real time element control. VP value will set to 1 as enable at power-on. It can be disabled (hidden) by a zero value Font VP is none by default (using the above selected font) Select a VP for real time font ID change VP value will copy the above ID at power-on Foreground color VP is none by default (using the above selected color) Select a VP for real time foreground color adjustment VP value will copy the above selected color at power-on Backgound color VP is none by default (using the above selected color) Select a VP for real time background color adjustment VP value will copy the above selected color at power-on Transparent VP is none by default (using the above option) Select a VP for real time transparent background control VP value will copy the above transparent config at power-on It can be enable by a non-zero value or disable by a zero
Preview Preview Value is only for displaying text in SGTools environment
Scrolling String (STR_SCR)

General Show the basic information of the element X and Y is the location of element on screen, reference point is element top-left corner Width and Height are in pixels top-left corner of the screen = 0,0
Style Font select font face Font Size for TTF only Font Color is the font face color Background Color only available with Transparent disable Transparent true for disable the Background Color box to be show Mask could be any char to "represent" as the char (Keep empty for normal operation) Scroll is true by default false to convert itself to String element (see STR for details) Scroll Direction can be Horizontal or Vertical Scroll Pixels defined the text scrolling speed (0=no scroll, negative value for reverse scroll)
Format Align options are Left / Right / Center Char Spacing options are Default / Shrink
Content VP Resource is the type of VP hold the text content (VP_STR by default) VP Address is the VP that hold the string content (all the string should be end with \0 (0x00)) Length is no. of Char going to display
Properties Control (advance feature) Enable VP is none by default (element operate normally) Select a VP for real time element control. VP value will set to 1 as enable at power-on. It can be disabled (hidden) by a zero value Font VP is none by default (using the above selected font) Select a VP for real time font ID change VP value will copy the above ID at power-on Foreground color VP is none by default (using the above selected color) Select a VP for real time foreground color adjustment VP value will copy the above selected color at power-on Backgound color VP is none by default (using the above selected color) Select a VP for real time background color adjustment VP value will copy the above selected color at power-on Transparent VP is none by default (using the above option) Select a VP for real time transparent background control VP value will copy the above transparent config at power-on It can be enable by a non-zero value or disable by a zero Scroll Pixel VP is none by default (using the above value) Select a VP for real time scroll speed control (0=reserved, 1=fastest, 1000=slowest) VP value will copy the above Scroll Pixel config at power-on Preview Preview Value is only for displaying text in SGTools environment