cancel
Showing results for 
Search instead for 
Did you mean: 

Changing screen view when using TouchGFX

ari_v2
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions
MM..1
Chief III

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.

View solution in original post

2 REPLIES 2
MM..1
Chief III

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.

ari_v2
Senior

Thanks!