2020-05-08 01:41 AM
I Have a Main screen that contains a watch face. And i have different watch faces, where user selects his choice and to be able to set for Main Screen.
So, I have added two screens in TouchGFX where one is the Main screen and another is a screen that contains all watch faces in a swipe container. I have added all my watch faces in a swipe container to scroll and check for watch-faces. Now when ever user selects any watch-face, i have to set that as a Main screen.
So would you please help me on below questions,
Thanks in Advance,
Bala
2020-05-08 02:59 AM
Hi,
Please check below image
1)
2)
https://support.touchgfx.com/docs/api/classes/classtouchgfx_1_1_application#function-switchscreen
Hope this helps..
Karan
2020-05-08 04:18 AM
Hi Karan,
Thank you so much for the response.
This is to change the screen that is answer to my question 2.
Could you please give any details about 1st question and any code flow suggestion to my requirement.
Regards,
Bala
2020-05-08 04:39 AM
Hi @Bala ,
You can do the following to achieve what you want :
1) In the second screen (where you are offering to select one of the clock faces) remember the value of the selected clock face in a variable, which can either be a global variable or a public variable in your view class for this screen;
2) Use this variable value in the first screen to display the face. You can draw the clock face in the first screen in the setup function of the view class.
/Jagdish
2020-05-08 10:27 AM
Hi,
Please check below tutorial.
https://support.touchgfx.com/docs/tutorials/tutorial-03
Hope this helps..
Karan