2021-10-06 01:36 AM
Hi,
I would like to show dynamic text in text area with wildcard. The text contains the 'new line' character (\n) to jump to next line. for example: "First Line \n Second Line " will be printed to screen:
First Line
Second Line
TouchGFX does not recognize the \n char, so how could this be done?
Thank you
Solved! Go to Solution.
2021-10-10 07:02 AM
Hi, Thanks for reply.
My problem was that the '\n' character was not included in the wildcard range. Setting range to 0x0d-0x7f, solved the problem.
2021-10-06 05:55 AM
Hello,
You can try by assigning the text first to a UnicodeChar using Unicode::strncpy and then write it to the wildcard buffer using Unicode::snprintf.
2021-10-10 07:02 AM
Hi, Thanks for reply.
My problem was that the '\n' character was not included in the wildcard range. Setting range to 0x0d-0x7f, solved the problem.