Skip to main content
Ofaro.1
Associate III
October 13, 2021
Solved

TouchGFX not generating the screen transition code in STM32CubeIDE

  • October 13, 2021
  • 6 replies
  • 2083 views

Hi,

I'm having difficulty in creating multiple screens, currently, it already has 5+ screens and they all works fine through code (void FrontendApplicationBase::gotoMainScreenNoTransition() ) but when I tries to add one more screen, TouchGFX is not generating the Screen Transition Declarations code for new screen but it does declaring this in FrontendApplicationBase.cpp class :

#include <gui/aldetruma_screen/NewScreenView.hpp>

#include <gui/aldetruma_screen/NewScreenPresenter.hpp>

while for all other screens it has generated the following:

void FrontendApplicationBase::gotoMainScreenNoTransition()

{

  transitionCallback = touchgfx::Callback<FrontendApplicationBase>(this, &FrontendApplication::gotoMainScreenNoTransitionImpl);

  pendingScreenTransitionCallback = &transitionCallback;

}

Any thoughts will be very helpful.

This topic has been closed for replies.
Best answer by Romain DIELEMAN

Hi,

That is interesting. What version of TouchGFX are you using ?

The includes for each screen are always there no matter the amout of screens, so even if less than 5.

When I have more than 5 screens (10 in my test) I do have the goTo<NameOfScreen>NoTransition() function generated. Just to be sure could you check your interactions in TouchGFX Designer to make sure you have added the screen transition actions to your project for the missing screens ?

Does this cause you compilation errors or issues with the transitions ?

/Romain

6 replies

Romain DIELEMAN
Romain DIELEMANBest answer
ST Employee
October 13, 2021

Hi,

That is interesting. What version of TouchGFX are you using ?

The includes for each screen are always there no matter the amout of screens, so even if less than 5.

When I have more than 5 screens (10 in my test) I do have the goTo<NameOfScreen>NoTransition() function generated. Just to be sure could you check your interactions in TouchGFX Designer to make sure you have added the screen transition actions to your project for the missing screens ?

Does this cause you compilation errors or issues with the transitions ?

/Romain

Ofaro.1
Ofaro.1Author
Associate III
October 13, 2021

0693W00000FCKUFQA5.jpgHi Romain,

I'm using TouchGFX 4.15.0 version with STM32CubeIDE 1.5.0

Even If I add screen transition, it still not generating the goTo<NameOfScreen>NoTransition() function.

And it's not causing any compilation error. I have also added the screenshot of the only declarations being added by touchgfx in FrontendApplicationBase.cpp class.0693W00000FCKbLQAX.jpg 

Ofaro.1
Ofaro.1Author
Associate III
October 13, 2021

I think I have found the issue, I was using navigation screen for all of my screens and completely forgot it to add the interaction. It was really frustrating. But thanks for your valued input.

Really appreciate that

Bfdgr.1
Visitor II
October 16, 2021

I think I even have discovered the problem, I turned into the use of navigation screen for all of my displays and completely forgot it to add the link interplay . It turned into absolutely frustrating. But thank you to your valued enter.