2023-01-11 11:42 PM
if i will change this codition to "off" state during program excuation it will change to "off" .but when i change screen to another screen the position is came to starting point "on".
how i solve this ?
Solved! Go to Solution.
2023-01-12 12:54 AM
Hello @Ranjeet Singh,
You will have to save the state of your toggle buttons (with a boolean variable for example) in the Model, and then read this value every time you switch back on your Screen (in the setupScreen() method inside ScreenView.cpp).
To do that, you can take a look at this article of our documentation, and also this one for a simple tutorial.
Moreover, you can try out the project I shared in this post.
It can help you understand how to save value in the model from the View and propagate values the other way.
/Yoann
2023-01-12 12:54 AM
Hello @Ranjeet Singh,
You will have to save the state of your toggle buttons (with a boolean variable for example) in the Model, and then read this value every time you switch back on your Screen (in the setupScreen() method inside ScreenView.cpp).
To do that, you can take a look at this article of our documentation, and also this one for a simple tutorial.
Moreover, you can try out the project I shared in this post.
It can help you understand how to save value in the model from the View and propagate values the other way.
/Yoann
2023-01-12 01:24 AM
ok thank you sir,i will try
2023-01-19 03:55 AM
Hi @Yoann KLEIN ,
I started to use TouchGFX few days ago and it took me a while to understand that there is only 1 Model for the whole GFX (I come from Qt world so had to readjust to GFX's use of Model concept). I think it would help a lot if this was emphasized in docementation a bit more eg:
Or as it is done in this document:
www(dot)e4ds(dot)com/prom/files/Quest_5_Material.pdf
Ferro
2023-01-19 04:40 AM
Hello @ferro,
Thanks for the input, I will report this element to my colleagues.
/Yoann
2023-02-17 02:15 AM
sir,can we transfer touch gfx screen data to our monitor through any protocol..?