Put a FloatAnimation a button and the application panel, the button onClick put the FloatAnimation1.enabled: = true; and the animation runs normally, but if I click on the button again the animation does not run again. Ie I need the component FloatAnimation run whenever I click the button and not just the first time.
Asked
Active
Viewed 302 times
1
-
`FloatAnimation1.Enabled := False; FloatAnimation1.Enabled := True;` ? Or `FloatAnimation1.Stop; FloatAnimation1.Start;` ? – TLama Jul 15 '14 at 13:23
1 Answers
3
As I read the documentations, it would be easier for you to use the Start
method.
FloatAnimation1.Start;
This will restart the animation. Setting Enabled
to True
will call Start
, but only if Enabled
is currently False
. So it's easiest just to call the Start
method directly.

David Heffernan
- 601,492
- 42
- 1,072
- 1,490