cancel
Showing results for 
Search instead for 
Did you mean: 

Value to be displayed / set in textArea

Ebun.1
Senior

Thank you for helping.

How can I change the value displayed / set in the textArea to the value brought from the variable instead of the touchgfx setting value?

Wildcards are used for the textArea.

I wrote the following code in the View constructor, but it didn't show up.

Thank you.

int tmp, f10, f01

tmp = hoge.getValue ();

f10 = tmp / 10;

f01 = tmp% 10;

Unicode :: snprintf (textAreaFirstBuffer, TEXTAREAFIRST_SIZE, "% 02d", f10 * 10 + f01);

textAreaFirst.setWildcard (textAreaFirstBuffer);

textAreaFirst.invalidate ();

1 ACCEPTED SOLUTION

Accepted Solutions
Romain DIELEMAN
ST Employee

Hi,

Could you check in TouchGFX Designer in the "Texts" settings under the "Typographies" tab that you have set within the Wildcard Ranges "0-9" (or under Wilcard Characters 0123456789). This step is necessary for TouchGFX to be aware of what glyphs should be available in your application.

/Romain

View solution in original post

2 REPLIES 2
Romain DIELEMAN
ST Employee

Hi,

Could you check in TouchGFX Designer in the "Texts" settings under the "Typographies" tab that you have set within the Wildcard Ranges "0-9" (or under Wilcard Characters 0123456789). This step is necessary for TouchGFX to be aware of what glyphs should be available in your application.

/Romain

Ebun.1
Senior

Hi Romain Dieleman

It was displayed when the Text part was <d>.

Thank you very much.