cancel
Showing results for 
Search instead for 
Did you mean: 

Go back to last screen

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

1 ACCEPTED SOLUTION

Accepted Solutions
Martin KJELDSEN
Chief III

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

View solution in original post

4 REPLIES 4
Martin KJELDSEN
Chief III

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

Hi @Martin KJELDSEN​ 

Thank you for this example.

I'll try out as soon as possible.

Regards

Dejan

Sandy.Dahl
Associate II

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

Correct. This example is not designer compliant because of code generation