Skip to main content
WhyIsThisSo
Associate III
October 1, 2022
Solved

TouchGFX Widget TextArea Alignment

  • October 1, 2022
  • 3 replies
  • 2535 views

I have set up some TEXTS (On Off). I noticed that there are 2 alignment settings here (see #2 and #3) in the image

What does the 2 alignment setting do?

Then there is the alignment for the actual widget (#1)

Which alignment wins as far as the text being displayed?

This topic has been closed for replies.
Best answer by Osman SOYKURT

Hi WhyIsThisSo,

The #1 and #2 are the same . It shows the default alignment for the Text Area.

The #3 is an "extra" but always wins over the 2 other. Indeed, The Text areas in TouchGFX designer handles multi languages texts, so whenever you switch you language, you'll might also need to change the alignment (Left-to-right or Right-to-Left Languages).

So if #3 is not configured, TouchGFX Designer will use #2 . But if #3 is set, then it wins.

/Osman

3 replies

Yoann KLEIN
ST Employee
October 3, 2022

Hello @WhyIsThisSo​ ,

The views #1 and #2 represent the same alignment. That means that you the alignment you choose will be reflected on the TextArea content, not depending on from which view you modify it.

So basically it is just displaying the same data.

Hope that this helps,

/Yoann

Yoann KLEINST Software Developer | TouchGFX
Osman SOYKURT
Osman SOYKURTBest answer
Technical Moderator
October 3, 2022

Hi WhyIsThisSo,

The #1 and #2 are the same . It shows the default alignment for the Text Area.

The #3 is an "extra" but always wins over the 2 other. Indeed, The Text areas in TouchGFX designer handles multi languages texts, so whenever you switch you language, you'll might also need to change the alignment (Left-to-right or Right-to-Left Languages).

So if #3 is not configured, TouchGFX Designer will use #2 . But if #3 is set, then it wins.

/Osman

Osman SOYKURTST Software Developer | TouchGFX
WhyIsThisSo
Associate III
October 4, 2022

thanks @Yoann KLEIN​ @Osman SOYKURT​ 

for instance - if you have a text (ie."ON") and you might want to display the text either Left / Centre / Right alignment for the same language, you would need to create 3 separate TEXTS for the same text (ie. ON)

Osman SOYKURT
Technical Moderator
October 4, 2022

Hello WhyIsThisSo,

Yes that's correct :)

/Osman

Osman SOYKURTST Software Developer | TouchGFX