cancel
Showing results for 
Search instead for 
Did you mean: 

Show multiple lines in touchGFX text area

ari_v2
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions
ari_v2
Senior

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.

View solution in original post

2 REPLIES 2
Revanth
Associate III

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.

ari_v2
Senior

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.