Thema: Delphi Animation mit TImage!

Einzelnen Beitrag anzeigen

Ag3nt

Registriert seit: 3. Jun 2003
28 Beiträge
 
#7

THEMA CLOSEN :)

  Alt 6. Jun 2003, 00:33
So ich habs doch noch hingekriegt

Hier der Code nochmals danke für eure Hilfe

Delphi-Quellcode:
var
  Form1: TForm1;
        Image1: TImage;
        temp: Integer;



implementation

{$R *.dfm}



procedure TForm1.Timer1Timer(Sender: TObject);
begin


        if temp = 1 then begin
        Image1.Picture.LoadFromFile('pics/1_'+IntToStr(temp)+'.bmp');
        Form1.Caption:=IntToStr(temp);
        temp:= 2;
        end
        else if temp = 2 then begin
        Image1.Picture.LoadFromFile('pics/1_'+IntToStr(temp)+'.bmp');
        Form1.Caption:=IntToStr(temp);
        temp:= 3;
        end
        else if temp = 3 then begin
        Image1.Picture.LoadFromFile('pics/1_'+IntToStr(temp)+'.bmp');
        Form1.Caption:=IntToStr(temp);
        temp:= 1;
        end;




end;

procedure TForm1.FormCreate(Sender: TObject);
begin
temp:= 1;
end;

end.
Gruß, Ag3nt
  Mit Zitat antworten Zitat