Skip to main content
Ebun.1
Senior
May 26, 2021
Solved

Value to be displayed / set in textArea

  • May 26, 2021
  • 2 replies
  • 1234 views

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 ();

This topic has been closed for replies.
Best answer by Romain DIELEMAN

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

2 replies

Romain DIELEMAN
Romain DIELEMANBest answer
ST Employee
May 26, 2021

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
Ebun.1Author
Senior
May 26, 2021

Hi Romain Dieleman

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

Thank you very much.