[Solved] How can screen saver be implemented within TouchGFX?
I would like to implement a screen saver for an app with multiple TouchGFX screens. AnimatedImage widget is perfect for screen saver function I reckon. My question how it can be used across the whole TouchGFX screens.
The simplest solution might be that every screen shares the same AnimagedImage widget thru a custom container. In this case, I'm worrying that the size of TouchGFX resource might increase dramatically(But I think the TouchGFX designer will do its job smart, so it would not increase the resource size for the external flash no more than necessary.).
There is an answer to the same question as mine already, where a screen ID was recommended by Martin.
https://community.st.com/s/question/0D50X0000AaYMwM/how-to-implement-switchscreen-in-touchgfx
I think it's a good idea. One problem is that I have to define screen ID for every screen manually. It seems that TouchGFX don't support the screen ID or something like that. So I have to add a new ID for a new screen to be added. Or I have to remove the ID for a screen to be removed.
With screen IDs, I can implement a custom screen transition function for the screen saver. When screen saver touched, I can go back to the previous screen before the screen saver working. And the screen ID's of normal screens except for the screen saver must be recorded when screen is setup. I think I can store the variable for the screen ID in Model.
I don't know if two methods I mentioned above will work or not. Before implementation I would like to hear other's opinion who are hopefully familiar with TouchGFX.
I'm new to TouchGFX app. Please enlighten me with my problem.
Best regards,
Kyle