2020-10-13 02:47 PM
Hi
How to display an image so that it is replaced with another screen after a while?
Andrzej
2020-10-13 11:04 PM
Hello,
Please elaborate.
/Alexandre
2020-10-13 11:48 PM
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
2020-10-14 06:43 AM
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
2020-10-14 07:24 AM
Haello Jan!
Thank you. I will take a look
Andrzej