Skip to main content
AD�?b
Senior
October 13, 2020
Question

STM32F746G-DISCO, TouchGFX

  • October 13, 2020
  • 4 replies
  • 971 views

Hi

How to display an image so that it is replaced with another screen after a while?

Andrzej

This topic has been closed for replies.

4 replies

Alexandre RENOUX
Visitor II
October 14, 2020

Hello,

Please elaborate.

/Alexandre

AD�?b
AD�?bAuthor
Senior
October 14, 2020

Hello,

I am displaying the logo on the STM32F746G-DISCO screen. It is displayed after turning on the power. I want to display, for example, 50 seconds and then a screen with text appears. After touching the new screen, the screen with buttons should appear.

Andrzej

JPeča.1
Associate
October 14, 2020

Hi, I do not know, if I understood exactly, but I have an example for you. I have an application with logo at the beggings, which comes from 0 alpha to 255 a then it is switched to the application screen. I think, it could help you.

Screen1View::Screen1View():image3FadeAnimationEndedCallback(this, &Screen1View::image3FadeAnimationEndedHandler)
{
....
}
 
void Screen1View::setupScreen()
{
  ......
	image3.setFadeAnimationEndedAction(image3FadeAnimationEndedCallback);
}
 
 
void Screen1View::image3FadeAnimationEndedHandler(const touchgfx::FadeAnimator<touchgfx::Image>& i3)
{
	image3.setVisible(false);
	application().gotoScreen2ScreenNoTransition();
 
}
 

Jan

AD�?b
AD�?bAuthor
Senior
October 14, 2020

Haello Jan!

Thank you. I will take a look

Andrzej