2014-11-11, 18:08
Is there a way to trigger a fade in animation on a label or textbox control when the contents of the label or a textbox change?
I cannot for the life of me get a fade animation to work when the contents of the label change no matter what I try. Thanks.
[EDIT] I can do it if I set a visibilty condition on the label control based on the contents of a Skin.String and then do this...
and put this in a fake button control that I use to control a dynamic list...
Kind of a weird way of doing it but it works... I just don't like it because I can only set the AlarmClock for seconds and I don't want it to wait that long before it fades back in. Maybe for a half a second at the most.
I cannot for the life of me get a fade animation to work when the contents of the label change no matter what I try. Thanks.
[EDIT] I can do it if I set a visibilty condition on the label control based on the contents of a Skin.String and then do this...
PHP Code:
<visible>Skin.String(labelanimate,on)</visible>
<animation effect="fade" start="0" end="100" time="400" condition="Skin.String(labelanimate,on)">Conditional</animation>
and put this in a fake button control that I use to control a dynamic list...
PHP Code:
<ondown>Skin.SetString(labelanimate,off)</ondown>
... Do some stuff...
<ondown> AlarmClock(labelanimate,Skin.SetString(labelanimate,on),00:01,silent)</ondown>
Kind of a weird way of doing it but it works... I just don't like it because I can only set the AlarmClock for seconds and I don't want it to wait that long before it fades back in. Maybe for a half a second at the most.