cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX Widget TextArea Alignment

WhyIsThisSo
Associate III

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Osman SOYKURT
ST Employee

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 SOYKURT
ST Software Developer | TouchGFX

View solution in original post

4 REPLIES 4
Yoann KLEIN
ST Employee

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 KLEIN
ST Software Developer | TouchGFX
Osman SOYKURT
ST Employee

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 SOYKURT
ST Software Developer | TouchGFX
WhyIsThisSo
Associate III

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)

Hello WhyIsThisSo,

Yes that's correct 🙂

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX