cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to change a text value whitout "???"

Heinz_Baumer
Associate II

Hello.

I try to write a dynamic changed value in a text area.
But it isn't possible to make a value output.
I get allways "???" instead of my value.

I used the video from ST: https://support.touchgfx.com/academy/how-to/textarea

and try to change the text on runtime, but i get allways "????" as result. Even if i thy to write a unicode-string, a char string, a unicode-value...

The only way to change the text at runtime is to use a static text and an additional wildcard text.

 

counter++; Unicode::snprintf(Screen1View::textArea1Buffer, Screen1View::TEXTAREA_SIZE, "%d", counter); textArea1.invalidate();

If i use only a Wildcard, all characters are a "?".

If i use two text's ->  Auto-generated fixed Text "RPM:<value> and a Wildcard1, most of the characters are a "?" (RPM: is correct).

 

Is there a way to suppress the question marks, or does TouchGFX always display a question mark when trying to change a text or value?

 

 

2 REPLIES 2
RalfWegener
Associate

Have you added 0-9 to the wildcard characters as described here?

https://support.touchgfx.com/docs/development/ui-development/designer-user-guide/texts-view#wildcard-characters

TouchGFX Prints ? If the characters are not already used elsewhere.

GaetanGodart
ST Employee

Hello @Heinz_Baumer ,

 

To be more precise on the previous answer that was given, you have to add the characters you want to be displayed from the wildcard in the "Wildcard range", in the example below, we added all characters between 0 and 9:

GaetanGodart_0-1750067135279.png

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)