bonjour
je viens de creer un Tfloatanimation
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
 for nb:=1 to 7 do begin
 
   cre_boule(nb);
 
     anAnimation[nb]:=TFloatAnimation.Create(form1) ;
 
   anAnimation[nb].Parent:=uneBoule[nb];
   anAnimation[nb].PropertyName:='Position.X';
   anAnimation[nb].Duration:=8-nb;
   anAnimation[nb].StartFromCurrent:=True;
   anAnimation[nb].StopValue:=0+po;
   anAnimation[nb].StartValue:=200;
   anAnimation[nb].Delay:=nb;
   anAnimation[nb].Start;
 
    po:=po+50;
   end;
mais je voudrais savoir si on doit les detruire apres usage
avec free ou destroy moi quand j'essai de detruire on me dit pas de pointeur