cancel
Showing results for 
Search instead for 
Did you mean: 

touchgfx textarea is wrong

jschoi
Associate

디스플레이를 터치하면 글자가 깨지거나 이상한 글자가 표시됩니다.
그리고 screen1에 여러 글자를 입력했는데 놔다 켜면 글자가 이상하게 나옵니다. 도움을 주세요.

 

화면 캡처 2024-07-05 145554.png

 

이 사진은 touchgfx로 디자인된 오리지널 사진입니다.

보드에 이것을 업로드하면 위에처럼 이미지가 사라지거나 이상한 텍스트가 포함되는 경우가 있습니다.

 

KakaoTalk_20240705_145528083_01.jpg

KakaoTalk_20240705_150236158.jpg

11 REPLIES 11

Try add to your code after set new text TextArea | TouchGFX Documentation

unsigned_char_array
Senior III

 

textArea1.invalidate();

<update textArea1 buffer here>

textArea1.resizeToCurrentText();

textArea1.invalidate();

 

If right aligned:

 

textArea1.invalidate();

<update textArea1 buffer here>

textArea1.resizeToCurrentTextWithAlignment();

textArea1.invalidate();

 

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.