Skip to main content
MA.21
Associate III
September 13, 2022
Question

how pass information between srceens and shows in text area

  • September 13, 2022
  • 2 replies
  • 793 views

..

This topic has been closed for replies.

2 replies

Yoann KLEIN
ST Employee
September 13, 2022

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 KLEINST Software Developer | TouchGFX
MA.21
MA.21Author
Associate III
September 13, 2022

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