Autor Beitrag
Mindforce
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 358

Win XP Pro / MCE, Win 98, Slax (Linux)
Delphi 07 PRO, Delphi 3+7 (mit Prdx)
BeitragVerfasst: So 05.11.06 15:20 
Hi,

was mache ich hier falsch?!
Ich habe meinem Timer gesagt, das er alle 50 MSek das Image1 bewegen soll.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
procedure TForm2.Timer1Timer(Sender: TObject);
begin
image2.Left:=-200;
timer2.enabled:=true;
timer1.enabled:=false;
end;

procedure TForm2.Timer2Timer(Sender: TObject);
begin
image2.Left:=-200;
timer1.enabled:=true;
timer2.enabled:=false;
end;


Timer2 wird garnicht erst aktiviert.
Was mache ich falsch?

PLZ helft mir :-(

M!ndforce

_________________
Our force; in mind.
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: So 05.11.06 15:24 
Du setzt ja auch alle 50ms die Position deines Images auf der X-Achse auf -200!
Das kann auch nicht funktionieren.
Porbiers mal so:image2.Left:= image2.Left -200; ;)
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: So 05.11.06 15:24 
Woran siehst du, dass der Timer nicht aktiv ist?
Das Bild bewegt sich nicht, weil du die gleichen Koordinaten angegeben hast!

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Mindforce Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 358

Win XP Pro / MCE, Win 98, Slax (Linux)
Delphi 07 PRO, Delphi 3+7 (mit Prdx)
BeitragVerfasst: So 05.11.06 15:34 
:lol: Wie dumm von mir. THX

_________________
Our force; in mind.