<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[TA Widget support different Text colors]]></title><description><![CDATA[<p dir="auto">Hi Kl3m3n,</p>
<p dir="auto">Want ask if the TA Widget can support Text in different colors, like line 1 Text in Blue<br />
line 2 Text in Red, etc</p>
<p dir="auto">Best regards</p>
]]></description><link>https://forum.gui-o.com/topic/77/ta-widget-support-different-text-colors</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 16:44:39 GMT</lastBuildDate><atom:link href="https://forum.gui-o.com/topic/77.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 14 Aug 2022 23:47:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TA Widget support different Text colors on Tue, 16 Aug 2022 18:16:05 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/4">@kl3m3n</a>,</p>
<p dir="auto">Fine, Thank You</p>
<p dir="auto">Regards</p>
]]></description><link>https://forum.gui-o.com/post/306</link><guid isPermaLink="true">https://forum.gui-o.com/post/306</guid><dc:creator><![CDATA[Sato]]></dc:creator><pubDate>Tue, 16 Aug 2022 18:16:05 GMT</pubDate></item><item><title><![CDATA[Reply to TA Widget support different Text colors on Tue, 16 Aug 2022 18:10:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/8">@sato</a> Ok, I am glad it works now. The unicode sequence is parsed as double quotes, so it needs to be escaped again to not represent the actual escape sequence, but a backslash. GUI-O can then parse this correctly.</p>
<p dir="auto">Thanks for the feedback.<br />
Best regards,<br />
kl3m3n</p>
]]></description><link>https://forum.gui-o.com/post/305</link><guid isPermaLink="true">https://forum.gui-o.com/post/305</guid><dc:creator><![CDATA[kl3m3n]]></dc:creator><pubDate>Tue, 16 Aug 2022 18:10:05 GMT</pubDate></item><item><title><![CDATA[Reply to TA Widget support different Text colors on Tue, 16 Aug 2022 17:06:01 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/4">@kl3m3n</a>,<br />
Yes, now it works, congratulations. You are the best!</p>
<p dir="auto">It will be very useful to visually identify the two types of access, at the location where is the equipment and remotely away from the location. I will certainly use it when Gui-O makes the NFC tag ID available to the user.<br />
Until then, I will wait.</p>
<p dir="auto">It could also be done via barcode, but it doesn't offer the same certainty since you could easily use a copy of that barcode.</p>
<p dir="auto">Best regards</p>
]]></description><link>https://forum.gui-o.com/post/304</link><guid isPermaLink="true">https://forum.gui-o.com/post/304</guid><dc:creator><![CDATA[Sato]]></dc:creator><pubDate>Tue, 16 Aug 2022 17:06:01 GMT</pubDate></item><item><title><![CDATA[Reply to TA Widget support different Text colors on Tue, 16 Aug 2022 16:13:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/8">@sato</a></p>
<p dir="auto">Try escaping the \u0022 sequence using another slash, e.g.:</p>
<pre><code>&lt;font color=\\u0022red\\u0022&gt;
</code></pre>
<p dir="auto">Does this work ok?</p>
<p dir="auto">Best regards,<br />
kl3m3n</p>
]]></description><link>https://forum.gui-o.com/post/303</link><guid isPermaLink="true">https://forum.gui-o.com/post/303</guid><dc:creator><![CDATA[kl3m3n]]></dc:creator><pubDate>Tue, 16 Aug 2022 16:13:47 GMT</pubDate></item><item><title><![CDATA[Reply to TA Widget support different Text colors on Tue, 16 Aug 2022 15:39:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/4">@kl3m3n</a>,</p>
<p dir="auto">Yes, it compile. Have paste your code lines after create the TA.  mqttClient.publish(&amp;In[0], "|TA UID:ta2 X:84 Y:76 W:30 H:43 VIS:1 BGC:#b4c5de FGC:#121212 SHE:1 FSZ:4.5 RAD:1.5 BSZ:10 CL:1\r\n");<br />
String var = "13:13 13-07-2022 Ewald Weber";<br />
String message = "@ta2 TXT:"&lt;font color=\u0022red\u0022&gt;" + var + "&lt;/font&gt;"\r\n";<br />
mqttClient.publish(&amp;In[0], &amp;message[0]);</p>
<p dir="auto">but the App show String parameter header ("&gt;13:13 13-07-2022 Ewald Weber&lt;/font&gt;") not found</p>
<p dir="auto">Regards</p>
]]></description><link>https://forum.gui-o.com/post/301</link><guid isPermaLink="true">https://forum.gui-o.com/post/301</guid><dc:creator><![CDATA[Sato]]></dc:creator><pubDate>Tue, 16 Aug 2022 15:39:26 GMT</pubDate></item><item><title><![CDATA[Reply to TA Widget support different Text colors on Tue, 16 Aug 2022 13:51:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/8">@sato</a> You are missing the escape character. Did this even compile?</p>
<p dir="auto">Try (please try copy-paste) the following:</p>
<pre><code>String var = "13:13 13-07-2022 Ewald Weber";
String message = "@ta1 TXT:\"&lt;font color=\u0022red\u0022&gt;" + var + "&lt;/font&gt;\"\r\n";
mqttClient.publish(&amp;In[0], &amp;message[0]);
</code></pre>
<p dir="auto">Best regards,<br />
kl3m3n</p>
]]></description><link>https://forum.gui-o.com/post/300</link><guid isPermaLink="true">https://forum.gui-o.com/post/300</guid><dc:creator><![CDATA[kl3m3n]]></dc:creator><pubDate>Tue, 16 Aug 2022 13:51:08 GMT</pubDate></item><item><title><![CDATA[Reply to TA Widget support different Text colors on Mon, 15 Aug 2022 17:04:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/4">@kl3m3n</a>,</p>
<p dir="auto">This not work<br />
text_line = "@ta1 TXT:"&lt;font color=\u0022red\u0022&gt;" + strnr + "&lt;/font&gt;"\r\n";<br />
mqttClient.publish(&amp;In[0], &amp;text_line[0]);</p>
<p dir="auto">show message   String parameter header("&gt;&lt;/font&gt;") not found</p>
<p dir="auto">This not show error message, but not function correctly<br />
text_line = "@ta1 TXT:<em>&lt;font color="red"&gt;" + strnr + "&lt;/font&gt;</em>\r\n";<br />
mqttClient.publish(&amp;In[0], &amp;text_line[0]);</p>
<p dir="auto">It must show on the TA1 this:<br />
13:13  13-07-2022  Ewald Weber<br />
16:53  19-07-2022  Ewald Weber<br />
18:15  24-07-2022  Klaus-Dieter Becker<br />
10:18  27-07-2022  Tobias Wolf<br />
17:48  15-08-2022  Hans Peters2<br />
17:52  15-08-2022  Hans Peters3</p>
<p dir="auto">instaead it shows this:<br />
*10:18<br />
*<br />
*17:48<br />
*17:52<br />
**<br />
**<br />
**</p>
<p dir="auto">Regards</p>
]]></description><link>https://forum.gui-o.com/post/299</link><guid isPermaLink="true">https://forum.gui-o.com/post/299</guid><dc:creator><![CDATA[Sato]]></dc:creator><pubDate>Mon, 15 Aug 2022 17:04:15 GMT</pubDate></item><item><title><![CDATA[Reply to TA Widget support different Text colors on Mon, 15 Aug 2022 13:24:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/8">@sato</a></p>
<p dir="auto">Could be something like this (after creating |TA with UID:ta1):</p>
<pre><code>String var = "your_variable";
String message = "@ta1 TXT:\"&lt;font color=\u0022red\u0022&gt;" + var + "&lt;/font&gt;\"\r\n";
</code></pre>
<p dir="auto">in case of * delimiter:</p>
<pre><code>String var = "your_variable";
String message = "@ta1 TXT:*&lt;font color=\"red\"&gt;" + var + "&lt;/font&gt;*\r\n";
</code></pre>
<p dir="auto">BR,<br />
kl3m3n</p>
]]></description><link>https://forum.gui-o.com/post/296</link><guid isPermaLink="true">https://forum.gui-o.com/post/296</guid><dc:creator><![CDATA[kl3m3n]]></dc:creator><pubDate>Mon, 15 Aug 2022 13:24:46 GMT</pubDate></item><item><title><![CDATA[Reply to TA Widget support different Text colors on Mon, 15 Aug 2022 11:34:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/4">@kl3m3n</a>,<br />
Good. Thanks.<br />
How is the example code if the text is in a String Variable?</p>
<p dir="auto">Best regards</p>
]]></description><link>https://forum.gui-o.com/post/295</link><guid isPermaLink="true">https://forum.gui-o.com/post/295</guid><dc:creator><![CDATA[Sato]]></dc:creator><pubDate>Mon, 15 Aug 2022 11:34:11 GMT</pubDate></item><item><title><![CDATA[Reply to TA Widget support different Text colors on Mon, 15 Aug 2022 09:54:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.gui-o.com/uid/8">@sato</a> Yes you can do it, but it takes a little "trick". There are two ways to do it:</p>
<ol>
<li>Use double quotes for text (default). For example:</li>
</ol>
<pre><code>|TA UID:ta1 X:50 Y:50 TXT:"my text"\r\n
@ta1 TXT:"&lt;font color=\u0022red\u0022&gt;my red text&lt;/font&gt;"\r\n
</code></pre>
<p dir="auto">In this case, the  \u0022 is unicode escape for double quotes, which needs to be written like this, otherwise GUI-O will parse the TXT incorrectly when adding the 'font' color attribute.</p>
<ol start="2">
<li>Use other character for TXT encapsulation (for example * - you have to set this via @gse request - see 'General settings change request' section in the manual):</li>
</ol>
<pre><code>|TA UID:ta1 X:50 Y:50 TXT:*my text*\r\n
@ta1 TXT:*&lt;font color="red"&gt;my red text&lt;/font&gt;*\r\n
</code></pre>
<p dir="auto">Note that instead of "red" you can use any hex color, e.g., #FFFF00.</p>
<p dir="auto">This is not explicitly stated in the manual, so I will correct this.</p>
<p dir="auto">BR,<br />
kl3m3n</p>
]]></description><link>https://forum.gui-o.com/post/291</link><guid isPermaLink="true">https://forum.gui-o.com/post/291</guid><dc:creator><![CDATA[kl3m3n]]></dc:creator><pubDate>Mon, 15 Aug 2022 09:54:02 GMT</pubDate></item></channel></rss>