cancel
Showing results for 
Search instead for 
Did you mean: 

TextArea word wrap

FTkal.1
Associate II

I'm not able top get word wrap working with the TextArea widget.

I'm using the TextArea sample. I've changed the text resource "Main_text" to be a single line of text. I've editted the Screen1View() constructor and added...

mainTxt.setWideTextAction(touchgfx::WIDE_TEXT_WORDWRAP);

mainTxt.resizeHeightToCurrentText();

as suggested by another post, but I only get one line of text, truncated within the box.

Any suggestions?

Edit: And I set line spacing to 5.

14 REPLIES 14

@Martin KJELDSEN​ yes please, A working project that shows what is discussed in this thread

That's the point! It has been added, but won't function as described, thinking it's typographes settings

Sure, give me one minute. This will be my final action before summer vacation 🙂

Here it is. See you in 3 weeks!

Highly appreciated, have a wonderful vacation.