Skip to main content
Associate
November 14, 2023
Question

Aligned to center text comes out cut

  • November 14, 2023
  • 1 reply
  • 1106 views

Hi,

I was placing text into a text area, and no matter what I do, it comes out cut from the sides.

the code:

 

 textArea1.setTypedText(touchgfx::TypedText(T_ID_PLACE_CART_IN_CARTON));
invalidate();
 
the result:
ArthurStone_0-1699966713230.png

I suppose it could be the bounding area, but how can I fix this?

 
This topic has been closed for replies.

1 reply

ST Employee
November 14, 2023

Hello @ArthurStone ,

Consider using static size for your Text Area and give it a size large enough to accommodate the text. You can specify the size your self through the designer by unchecking Auto-size. 
textArea.jpg

 I hope this helps you

 

Mohammad MORADIST Software Developer | TouchGFX