cancel
Showing results for 
Search instead for 
Did you mean: 

How to switch the Screens in TouchGFX Designer without adding any buttons or other widgets?

Shivani
Senior

Hello,

In the Touch GFX Designer, I have taken the total of four screens. In the first screen, I have added a background image to it. Next I have taken a box and added some color to it.

Then I have done same with the other three screens. I have taken box in each screen and filled different colors to the box after adding a background image to the Screen. I also added interactions to change the Screen by wiping and given directions to wipe the every Screen and finally tried to run the simulator, but only the first screen could be able to seen in the simulator and switching the screens is not getting in the simulator.

 Is it possible to change the Screens without adding of buttons? If so, How?

17 REPLIES 17
JJhin.1
Senior II

to Change screen without any interaction use this:

static_cast<FrontendApplication*>(Application::getInstance())->gotoScreen2ScreenNoTransition();

here you have to replace "gotoScreen2ScreenNoTransition()" this with your screen name.

If the  gotoScreen[...]-functions are not created by TouchGFX Designer, add an Interaction without trigger and action for change screen and then it will:

change screen interaction.png

When this account seems to be inactive, try @tdecker2 - ST can't change mail addresses, so I had to create a new account.

if you generate the code according to above settings goto[..] function will get created in generated folder.

check FrontendApplicationBase.cpp file there you'll get yours goto... function for screen

Osman SOYKURT
ST Employee

Hello @Shivani ,

I'd also go for custom action and interaction as suggested by @t.decker.

Osman SOYKURT
ST Software Developer | TouchGFX

Hello @Osman SOYKURT ,

As suggested by the @t.decker I have tried with the interactions to change the screens. But the screen is not switching from Screen1 to Screen2.

When I have tried in the simulation only the box that I have added in the Screen 1 is seen in simulator.

And I have not added any interactions or actions in Screen2.I have added an action and an interaction suggested by @t.deckerI have added an action and an interaction suggested by @t.deckerscreen2.pngsimulator.png

MM..1
Chief III

Hurry up. Start learn howto interractions use. For example create two interractions 1. Delay initiated on screen load

2. change screen after 1 ends

MM1_0-1688712746973.png

 

Is it not possible to change the screens without using any buttons or widgets? In my application i have not added any buttons etc. in the screens.

I show you howto do this , what youu dont uderstand?

JTP1
Lead

Hello. How you then want to trigger the screen change...wiping to left/right ?