cancel
Showing results for 
Search instead for 
Did you mean: 

Please advise on using TextArea Set text interaction to dynamically set text.

ksale.1
Senior

Please note the interaction below trying to update text using the value in the buffer (not working)

0693W00000QMIcuQAH.png

1 ACCEPTED SOLUTION

Accepted Solutions
Yoann KLEIN
ST Employee

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

Yoann KLEIN
ST Software Developer | TouchGFX

View solution in original post

2 REPLIES 2
ksale.1
Senior

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?

Yoann KLEIN
ST Employee

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

Yoann KLEIN
ST Software Developer | TouchGFX