This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
comfilehmi:text:index [2020/03/01 16:11] COMFILE Technology [Text Widget vs the Title Bar Widget] |
comfilehmi:text:index [2023/04/08 04:42] COMFILE Technology [Note : Text Widget vs the Title Bar Widget] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Text ====== | ||
+ | |||
+ | This widget is used to display text on the screen. | ||
+ | |||
+ | {{ :comfilehmi:text:text.png?nolink |}} | ||
+ | |||
+ | {{ :comfilehmi:text:text2.png?nolink |}} | ||
+ | |||
+ | In fact, the data type is the same as the four elements of widgets. | ||
+ | |||
+ | {{ :comfilehmi:text:text_number.png?nolink |}} | ||
+ | |||
+ | ===== Conditional Text ===== | ||
+ | |||
+ | //Conditional text// is a feature that can be used to display alternate text when a certain condition be satisfied. | ||
+ | |||
+ | In the example below, //Comfile Technology// will be displayed unless the variable //Korean// is equal to 1, in which case //컴파일 테크놀로지// will be displayed instead. | ||
+ | |||
+ | {{ :comfilehmi:text:textreplace.png?nolink |}} | ||
+ | |||
+ | ===== Displaying the Contents of a Variable ===== | ||
+ | |||
+ | To display the contents of a variable, use the [[comfilehmi:text_builder:index|Text Builder]] widget. | ||
+ | |||
+ | ===== Text Widget vs the Title Bar Widget ===== | ||
+ | |||
+ | The [[:comfilehmi:title_bar:|Title Bar]] is static text that is rendered in the ComfileHMI Editor and deployed to the ComfileHMI hardware as a static image. Therefore it cannot be updated at runtime. Because it is rendered in the ComfileHMI Editor, a Title Bar's text will be rendered with anti-aliasing. | ||
+ | |||
+ | [[comfilehmi:index#widgets| Back to ComfileHMI]] | ||