Autor Beitrag
Mitmischer 1703
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Di 02.10.07 09:31 
Wie funzt TAnimate?
Ich hab es mit dem Quelltext versucht, aber ohne Erfolg:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.FormActivate(Sender: TObject);
begin
  Animate1.Active := true;
  Animate1.Play (111);
end;


Das Hilfesystem hat mir gesagt, dass das Thema schon behandelt wurde. Aber ich finde nur "Mist!"
Hilfe!!! :cry:

Moderiert von user profile iconNarses: Delphi-Tags hinzugefügt
Einloggen, um Attachments anzusehen!
leseratte18
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WinXP
Delphi 3.2 Prof. +Delphi 7 Pers. +Delphi 2005 Pers.
BeitragVerfasst: Di 02.10.07 09:52 
Animate1.Play????

Kenn ich nicht!

Probiers mal damit das du Animate1.CommonAVI die richtige Animation zuweist und dann Animate1.Active startest (auf true schaltest).

Dann kommt die Methode Animate1.Start und schon läuft die Animation
Mitmischer 1703 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Di 02.10.07 10:38 
user profile iconleseratte18 hat folgendes geschrieben:
Animate1.Play????

Kenn ich nicht!

Probiers mal damit das du Animate1.CommonAVI die richtige Animation zuweist und dann Animate1.Active startest (auf true schaltest).

Dann kommt die Methode Animate1.Start und schon läuft die Animation


Mein Delphi kennt Animate1.Start nicht, nur Play!!! :cry:
TProgger
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 148

XP
D6, D2007 prof
BeitragVerfasst: Di 02.10.07 12:55 
Man muss TAnimate auch einen Avi-Film (unkomprimiert und ohne Sound) zuweisen oder im ObjectInspector eine vordefinierte Animation einstellen.
Mitmischer 1703 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Di 02.10.07 13:48 
Hab ich (Sreenshot)!
TProgger
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 148

XP
D6, D2007 prof
BeitragVerfasst: Di 02.10.07 15:32 
Lass mal einfach das Play() weg, dann klappt das auch. Active := True reicht aus, damit das Teil was tut :)
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Di 02.10.07 16:10 
Schonmal die Parameter von Play() angeguckt? FromFrame, ToFrame, Count. Du spielst mit deinem 1, 1, 1 also von Frame 1 zu Frame 1 und das 1x.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)