Back/previous screen implementation with TouchGFX
I am looking to implement back button to go back to previous screen (similar to UI on a smart phone). For this,
1. Need to remember current screen before a button is pressed.
2. In the new screen, when a back button is pressed, programmatically change to previous screen.
It would need a common memory area where current screen can be saved. This information should be accessible from any screen so that it can be read when a back button on that particular screen is pressed.
Here is a scenario:
- There is title bar with a button, say Button1.
- Screen 1 leads to Screen 2. Screen 2 leads to Screen 3. All screens have title bar with same Button1.
- Two ways to reach screen 3. First, by clicking the Button1 on title bar (a short cut). Second, Screen1 to Screen 2 to Screen3.
- Screen3 has a back button.
- When present screen is Screen1 and Screen3 is reached by pressing the Button1, if a back button is pressed in Screen3 then Screen1 should be reached.
- When transition is Screen1 to Screen2 to Screen3, if a back button is pressed in Screen3 then Screen2 should be reached as it is the most recent screen before reaching Screen3.
Is this possible with TouchGFX?
