Skip to main content
Nex-Leo
Associate II
Sep 24, 2025 8:41 AM UTC
Solved

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

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?

This topic has been closed for replies.
LouisBBest answer
ST Employee
Sep 25, 2025 1:15 PM UTC

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 BOUDOST Software Engineer | TouchGFX

3 replies

ST Employee
Sep 24, 2025 1:37 PM UTC

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 BOUDOST Software Engineer | TouchGFX
Nex-Leo
Nex-LeoAuthor
Associate II
Sep 25, 2025 1:09 AM UTC

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,

LouisBBest answer
ST Employee
Sep 25, 2025 1:15 PM UTC

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 BOUDOST Software Engineer | TouchGFX