cancel
Showing results for 
Search instead for 
Did you mean: 

When the language changes, how can resizeToCurrentText be automatically and in batches executed

Nex-Leo
Associate II

We will constantly monitor whether the parameters of the language change in a background container. If they do change, we will apply the new language. But for components that are not in this container on the same screen, how can we resize them most appropriately?

1 ACCEPTED SOLUTION

Accepted Solutions
LouisB
ST Employee

Hello @Nex-Leo,

You can check interactions, triggers and actions, here there's a tutorial : Tutorial 5: Creating Custom Triggers and Actions | TouchGFX Documentation

BR,

Louis BOUDO
ST Software Engineer | TouchGFX

View solution in original post

3 REPLIES 3
LouisB
ST Employee

Hello @Nex-Leo,

I'm not sure to understand, you want to change the value of one container when another container changes ? Are they both on the same screen ?

BR, 

Louis BOUDO
ST Software Engineer | TouchGFX

Hello, @LouisB 

Yes, they belong to the same screen.

For instance, the English word for the copy "Control" is "Control", and the Chinese word is "控制". As a result, their lengths will vary in different languages, If I have performed "resizeToCurrentText" in Chinese, then when the language changes to English, it will be displayed as incomplete.

BR,

LouisB
ST Employee

Hello @Nex-Leo,

You can check interactions, triggers and actions, here there's a tutorial : Tutorial 5: Creating Custom Triggers and Actions | TouchGFX Documentation

BR,

Louis BOUDO
ST Software Engineer | TouchGFX