2019-09-13 06:36 AM
Hi
Is there a solution to go back to the last screen?
For example you go from any screen to the SettingsScreen and after you have set all settings you would like to go back to the last screen.
Regards
Dejan
Solved! Go to Solution.
2019-09-13 07:14 AM
Hi @Dejan Nedeljkovic,
I'm about to leave but i've done this for someone on the forum before - Check this out. I don't recall which version it is, but i'm sure you'll figure things out :)
http://sw-center-st-com.s3-eu-west-1.amazonaws.com/touchgfx/TouchGFX/Community/gotoStack_example.zip
It involves pushing function pointers (to transition methods) onto a stack whenever you transition to a new view. And you can then pop + call those functions when through a method you call when you press your back button or something similar.
/Martin
2019-09-13 07:14 AM
Hi @Dejan Nedeljkovic,
I'm about to leave but i've done this for someone on the forum before - Check this out. I don't recall which version it is, but i'm sure you'll figure things out :)
http://sw-center-st-com.s3-eu-west-1.amazonaws.com/touchgfx/TouchGFX/Community/gotoStack_example.zip
It involves pushing function pointers (to transition methods) onto a stack whenever you transition to a new view. And you can then pop + call those functions when through a method you call when you press your back button or something similar.
/Martin
2019-09-16 01:39 AM
Hi @Martin KJELDSEN
Thank you for this example.
I'll try out as soon as possible.
Regards
Dejan
2020-09-07 06:40 AM
Hi @Martin KJELDSEN !
I don't think this solution will work queit as smooth when transitioning screens via the designer. Correct? Since the base-classes don't use the functions in frontend application?
Kind regards,
Sandy
2020-09-08 02:26 AM
Correct. This example is not designer compliant because of code generation