Skip to main content
COSEBE
Senior
Nov 25, 2019 12:12 AM UTC
Solved

[TouchGFXDesigner] Hardware button BUG

If I setup hardware button is clocked on screen1 it works.

If I switch to screen2 in designer and come back to screen1, I lose some information

See attached image

This topic has been closed for replies.
Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
Nov 28, 2019 8:14 AM UTC

I'm just told it's already been fixed in the upcoming 4.13.0 by the designer team :) The action was still being generated, but the action was hidden for some reason.

Thanks for the report!

/Martin

8 replies

HP_it
Senior II
Nov 26, 2019 8:01 PM UTC

well, the model doesn't save the state that you leave a screen in.

If I understand you correctly you change something on your screen and then leave the screen. When you go back again the screen is reset to its original state. If that is what you are experiencing then it is not a bug. that's the way it is.

If you want to save the state you're in you will have to update some state variable in your model and provide a way of your view updating that variable (e.g. view->presenter->model)

The same way you will have to update the state when you re-enter the screen (model->presenter->view)

Come to think of it - you should be able to use the constructor/destructer methods for this.

COSEBE
COSEBEAuthor
Senior
Nov 27, 2019 9:48 AM UTC

Just in TouchGFX designer.

If I chose "change screen" or "hide widget" in action field, touchGFX_DESIGNER should keep this information.

But in my project, it do not.

You see in my screenshot the action field is empty.

Normaly, I selected "change screen"

And you have to know the code is well generated by touchGFX designer.

HP_it
Senior II
Nov 27, 2019 8:46 PM UTC

You're right. I have the same issue here.

The code generates fine but the drop-down is not re-populated with the right info.

@Martin KJELDSEN​ - You might want to forward this to the designer people :)

Martin KJELDSEN
Principal III
Nov 28, 2019 9:32 AM UTC

Thanks for the heads up, it's already been fixed :) This caused some serious issues when upgrading projects with "change screen" interactions since no go to methods were being generated!

/Martin

Martin KJELDSEN
Principal III
Nov 28, 2019 8:02 AM UTC

By "some information" do you mean the action?

What was the action? I can't replicate it here on 4.12.3.

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
Nov 28, 2019 8:14 AM UTC

I'm just told it's already been fixed in the upcoming 4.13.0 by the designer team :) The action was still being generated, but the action was hidden for some reason.

Thanks for the report!

/Martin