Please advise on using TextArea Set text interaction to dynamically set text.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-27 12:01 PM
Please note the interaction below trying to update text using the value in the buffer (not working)
Solved! Go to Solution.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-28 1:06 AM
Hello @ksale.1​ ,
Why not simply use Wildcards for displaying your value in the TextArea ?
That could be way more easy and you would be able to still use the Unicode::snprintf() method to achieve it.
/Yoann
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-27 12:52 PM
I've achieved it programmatically in handleTickEvent()
void Screen1View::handleTickEvent()
{
boxProgress1.setValue(flow);
Unicode::snprintf(textArea1Buffer, TEXTAREA1_SIZE,"%u", flow);
textArea1.invalidate();
}
can set text do the same?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-28 1:06 AM
Hello @ksale.1​ ,
Why not simply use Wildcards for displaying your value in the TextArea ?
That could be way more easy and you would be able to still use the Unicode::snprintf() method to achieve it.
/Yoann
ST Software Developer | TouchGFX
