2021-10-03 07:44 AM
Hi,
I need to change a screen's look at run time. For example, upon command, change background color of screen1 to a specific color. My problem is that after moving to screen2 and then back to screen1 the new background color is lost since TouchGFX calls the base class that uses the original color. Any idea how to keep new setting also after switching between screens? I wouldn't like to change the base code that is generated and not meant to be updated by user.
Thank you,
Ari
Solved! Go to Solution.
2021-10-03 10:59 AM
You need create variables in model and store changes in. Then on screen setup get from model and change for example color for screen ...
I recommend struct global and you can use it without model listener view setters geters calls.
2021-10-03 10:59 AM
You need create variables in model and store changes in. Then on screen setup get from model and change for example color for screen ...
I recommend struct global and you can use it without model listener view setters geters calls.
2021-10-06 01:21 AM
Thanks!