cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the modal text when using Modal in TouchGFX?

PKunK.1
Associate III

0693W000007CUwlQAG.png 

0693W000007CUwvQAG.png 

0693W000007CUx5QAG.png 

The TouchGFX uses a Modal window. A TextArear is declared in the Model Window, and the TextArear content is to be changed depending on the circumstances. Is there a way to change the text only in one TextArear?

For example) case1 -> Hello,

case2 -> Have Nice Day!

case3 -> Good Days!~

I want to change these text contents and use them.

1 ACCEPTED SOLUTION

Accepted Solutions
Alexandre RENOUX
Principal

Hello @PKunK.1​ ,

Just like you can add buttons and images (see UI example "Modal Window" available in TouchGFX Designer), you can add a TextArea in the ModalWindow and actually anything you want because a Modal Window is first and foremost a CONTAINER.

Now to modify a textArea, you need to know how to use wildcards. For this please read the following articles :

I also enclosed a quick project to show you how it is really implemented in a project.

When your question is answered, please close this topic by choosing Select as Best.

/Alexandre

View solution in original post

1 REPLY 1
Alexandre RENOUX
Principal

Hello @PKunK.1​ ,

Just like you can add buttons and images (see UI example "Modal Window" available in TouchGFX Designer), you can add a TextArea in the ModalWindow and actually anything you want because a Modal Window is first and foremost a CONTAINER.

Now to modify a textArea, you need to know how to use wildcards. For this please read the following articles :

I also enclosed a quick project to show you how it is really implemented in a project.

When your question is answered, please close this topic by choosing Select as Best.

/Alexandre