Skip to main content
Senior
December 10, 2024
Solved

application().goToXScreenNoTransition()

  • December 10, 2024
  • 1 reply
  • 460 views

Hello, I am having issues in the IDE, with making the application transition screens.

What I've noticed is that even though the goToScreenX function for specific screens is declared in the FrontEndApplicationBase.cpp, it hard faults if the screen transition function isn't already called somewhere in TouchGFXC.

For example, if I want to go to PageA, and PageA has no screens currently going to it, and I type application().goToPageAScreenNoTransition(), it would error. 

But if I already had pageB -> pageA using a interaction+button in TouchGFX, then application().goToPageAScreenNoTransition(), would be valid from any other page. 

Best answer by Priyank

I found the solution, the page view needs a #include <touchgfx/widgets/Button.hpp> or else application().goToScreen will hard fault.

1 reply

PriyankAuthorBest answer
Senior
December 10, 2024

I found the solution, the page view needs a #include <touchgfx/widgets/Button.hpp> or else application().goToScreen will hard fault.