touchgfx fade-in fade-out single button
Hi
I would like fade-in and fade-out of widget text, using a single button ,is possible?
How I can do?
Thank
Hi
I would like fade-in and fade-out of widget text, using a single button ,is possible?
How I can do?
Thank
Hallo
Thank for your answer, i create fade botton on/off with option "Add C Code" and implemented a virtual function in screenView:
void screenView::function1()
{
if (ROI_Txt.getAlpha()>200) {
ROI_Txt.clearFadeAnimationEndedAction();
ROI_Txt.setFadeAnimationDelay(6);
ROI_Txt.startFadeAnimation(0, 120, touchgfx::EasingEquations::linearEaseIn);
}
else
{
ROI_Txt.clearFadeAnimationEndedAction();
ROI_Txt.setFadeAnimationDelay(6);
ROI_Txt.startFadeAnimation(255, 120, touchgfx::EasingEquations::linearEaseOut);
}
}
I'll Try your suggest.
Thank
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.