Autor Beitrag
Hannah1990
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Do 28.09.06 12:12 
Hi,

hab die Suchfunktion benutzt, aber nichts gefunden, was mir weitergeholfen hat.
Zuerst mal mein bisheriger Text :

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
procedure TForm1.Timer1Timer(Sender: TObject);
begin
   imgAmpel1rot.visible := true ;
   imgAmpel2rot.visible := true ;
   imgAmpel1gruen.visible := false ;
   imgAmpel2gruen.visible := false ;
   timer2.enabled := true

end;

procedure TForm1.btnStartClick(Sender: TObject);
begin
timer1.enabled := true //bis hierhin klappt auch noch alles

end;

procedure TForm1.Timer2Timer(Sender: TObject);
begin
 imgAmpel1rot.visible := false ;
 imgAmpel2rot.visible := false ;
 imgAmpel1gruen.visible := true ;
 imgAmpel2gruen.visible := true
end; //das hier wird aber nciht mehr ausgeführt


Weiß jemand, wo mein Fehler liegt ?
Wieso werden die Anweisungen, die ich bei Timer2 geschrieben habe, nicht ausgeführt?
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Do 28.09.06 12:14 
sie werden ausgeführt, nur wird timer1 sie gleich wieder zurück setzen, also sperre Timer1 wenn Timer2 arbeitet und umgekehrt

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
Hannah1990 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Do 28.09.06 12:21 
Alles klar, vielen Dank :)

Jetzt funktionierts