2020-09-17 05:30 AM
Hello, I'm trying to display a random String in TextArea.
But when I call this function, there is too much ???? was displayed.
Below is my code, anyone can tell me what's wrong?
Many thanks,
Hieu
const char * test = "Hello World";
Unicode::snprintf(RoomHeaderNameBuffer, ROOMHEADERNAME_SIZE, "%s", test);
RoomHeaderName.invalidate();
And my TextArea Wildcard configuration
RoomHeaderName.setXY(202, 13);
RoomHeaderName.setColor(touchgfx::Color::getColorFrom24BitRGB(33, 49, 89));
RoomHeaderName.setLinespacing(0);
Unicode::snprintf(RoomHeaderNameBuffer, ROOMHEADERNAME_SIZE, "%s", touchgfx::TypedText(T_SINGLEUSEID130).getText());
RoomHeaderName.setWildcard(RoomHeaderNameBuffer);
RoomHeaderName.resizeToCurrentText();
RoomHeaderName.setTypedText(touchgfx::TypedText(T_SINGLEUSEID129));
Solved! Go to Solution.
2020-09-18 05:00 AM
Hello,
It's because you didn't tell TouchGFX that the letters in Hello World had to be included when compiling and linking.
To make TouchGFX know about these letters, you can either create a Resource "Hello World" or add "a-zA-Z" to the WildCard Ranges field of your Typography.
https://support.touchgfx.com/docs/development/ui-development/designer-user-guide/texts-view
/Alexandre
2020-09-18 05:00 AM
Hello,
It's because you didn't tell TouchGFX that the letters in Hello World had to be included when compiling and linking.
To make TouchGFX know about these letters, you can either create a Resource "Hello World" or add "a-zA-Z" to the WildCard Ranges field of your Typography.
https://support.touchgfx.com/docs/development/ui-development/designer-user-guide/texts-view
/Alexandre
2020-09-18 07:06 AM
Thank you, Alexandre.
I also found my issue yesterday. But now I have other question, Can I use Vietnamese in TouchGFX? I didn't found relate document about this language.
Hieu
2020-09-21 03:03 AM
I believe it is supported as it is similar to the latin alphabet.
/Alexandre
2020-09-23 01:16 AM
Thank you, I'll try it.