cancel
Showing results for 
Search instead for 
Did you mean: 

how pass information between srceens and shows in text area

MA.21
Associate III
 
2 REPLIES 2
Yoann KLEIN
ST Employee

Hello @MA.2​ ,

For sharing information between different screens, I would recommend to take a look at this article.

Then, you will be able to store your info into the model and display it on your screens through the presenter.

Similarly, you could also update the data stored into your model after an action of the user on the screen.

For displaying data into the TextArea, the most easy way is to use wildcards.

Please pay attention at those lines while implementing it :

Unicode::snprintf(textArea1Buffer, 10, "%d", newValue); // %d if you wanna display integer
textArea1.invalidate();

Otherwise, you can also use the setText() method.

Let me know if you have other questions,

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX
MA.21
Associate III

thanks for the help, can i pass information without presenter between screens, its work or not

my aim is eg: to pass selected text in scrollable container from screen1 to screen2 textarea