Gary Miyakawa Active Member Licensed User Longtime User Nov 20, 2014 #1 I've run into a small problem on a fade. With the code below, I get the fade of the "pnlhome" panel and it works as I would expect. All objects on that panel fade down. When the animation completes, the process jumps to the Animationend routine where I try to set the "Alpha" to about the same value. The odd thing is that only parts of that Panel get set to that value, unlike the animation that faded everything.. Is it me ? (most likely) and what can I do to get the same results that Animation gets with setting the Panel. Thanks, Gary Miyakawa Code: Copy ani.InitializeAlpha("pnl", 1, .10) ani.Duration = 2000 ani.Start(pnlhome) Sub pnl_animationend pnlhome.Color = Colors.ARGB(25, 0, 0, 0) End Sub
I've run into a small problem on a fade. With the code below, I get the fade of the "pnlhome" panel and it works as I would expect. All objects on that panel fade down. When the animation completes, the process jumps to the Animationend routine where I try to set the "Alpha" to about the same value. The odd thing is that only parts of that Panel get set to that value, unlike the animation that faded everything.. Is it me ? (most likely) and what can I do to get the same results that Animation gets with setting the Panel. Thanks, Gary Miyakawa Code: Copy ani.InitializeAlpha("pnl", 1, .10) ani.Duration = 2000 ani.Start(pnlhome) Sub pnl_animationend pnlhome.Color = Colors.ARGB(25, 0, 0, 0) End Sub
Erel B4X founder Staff member Licensed User Longtime User Nov 21, 2014 #2 You can use the AnimationPlus event that allows to persist the animation. Upvote 0
Gary Miyakawa Active Member Licensed User Longtime User Nov 21, 2014 #3 Thank you sir! I'm looking into it ! Upvote 0