Autor Beitrag
Marco15
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 98

Win XP Prof.
D2 Schüleredition, D7
BeitragVerfasst: So 27.03.05 12:29 
Hi an alle Delphianer!!!

Ich möchte das Delphi eine Prozedur meinetwegen nach fünf Minuten einleitet.
Aber wie geht das ???
Hat jemand ne Ahnung??? :?:

Marco15


Moderiert von user profile iconTino: Topic aus Sonstiges verschoben am So 27.03.2005 um 21:38
Marco15 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 98

Win XP Prof.
D2 Schüleredition, D7
BeitragVerfasst: So 27.03.05 12:30 
Wäre auch nett wenn ihr euch das mit dem Font-Dialog mal anguckt (ist sehr wichtig: für die Schule!!!)

Danke

Marco15
SandTarnFarbe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26

Win XP, Win 2003 Server
D7 Pers
BeitragVerfasst: So 27.03.05 12:34 
Dafür musst du ene Timer-Komponente einbinden, das Intervall wird in Millisekunden angegeben (5 Min sind dann 300.000) und unter der Prozedur OnTimer kannst den den Code eingeben, der jeweils im Abstand von 5 Min ausgeführt werden soll!
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 27.03.05 12:34 
Es wäre auch nett, wenn du dir mal deine Delphi-Hilfe anschaust oder die Suche in: Delphi-Forum, Delphi-Library FORENSUCHFUNKTION verwendest.
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: So 27.03.05 12:38 
user profile iconMarco15 hat folgendes geschrieben:
Wäre auch nett wenn ihr euch das mit dem Font-Dialog mal anguckt (ist sehr wichtig: für die Schule!!!)

Danke

Marco15

Ok, ich hab mir den Fontdialog angeguckt. :autsch:

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
Marco15 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 98

Win XP Prof.
D2 Schüleredition, D7
BeitragVerfasst: So 27.03.05 12:38 
Vielen Dank für den Tipp!!!
Werde ich demnächst mal machen!!!

Marco15
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: So 27.03.05 12:39 
user profile iconMarco15 hat folgendes geschrieben:
Vielen Dank für den Tipp!!!


Das war mehr als nur ein Tipp, das war schon ein halbes Tutorial :wink:

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Marco15 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 98

Win XP Prof.
D2 Schüleredition, D7
BeitragVerfasst: So 27.03.05 12:43 
Und wie kriege ich es hin, dass die Prozedur nur einmal ausgeführt wird???

Marco15
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 27.03.05 12:46 
Auch bei einem Anfänger ist offensichtliche Faulheit nicht zu entschuldigen.
Oder willst du mir erzählen, dass du nicht lesen kannst?

Es gibt eine "Enabled"-Eigenschaft, die man auf TRUE und FALSE setzen kann. Ich erinnere mich dunkel, in den Suchergebnissen einen Beitrag namens "TTimer stoppen" gesehen zu haben. Inwieweit dir der weiterhilft, weiß ich natürlich nicht. Aber einen Klick wär´s doch wert, oder? :roll:
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: So 27.03.05 12:48 
Ganz am Anfang von OnTimer:

ausblenden Delphi-Quelltext
1:
2:
Timer1.Enabled := False;
// Dann hier deinen Source

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Marco15 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 98

Win XP Prof.
D2 Schüleredition, D7
BeitragVerfasst: So 27.03.05 12:54 
Danke,

aber diesen Beitrag habe ich garantiert nicht geschrieben :shock:
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 27.03.05 14:43 
Welchen Beitrag hast du nicht geschrieben? :gruebel:
Blackheart
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

ME
D3Prof.-D6Standard
BeitragVerfasst: So 27.03.05 15:04 
Timer1 Enabled auf False setzen !

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
procedure TForm1.Button1Click(Sender: TObject);
begin
  Timer1.Enabled:=true;
end;

procedure TForm1.Timer1Timer(Sender: TObject);
begin
  Timer1.Interval:=10000;
  ShowMessage('Fünf Minuten sind jetzt um !!!');
  Timer1.Enabled:=false;
end;
Blackheart
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

ME
D3Prof.-D6Standard
BeitragVerfasst: So 27.03.05 15:06 
Interval natürlich auf 300000 sorry.
wdbee
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 628
Erhaltene Danke: 1



BeitragVerfasst: So 27.03.05 15:12 
Also wenn schon, dann so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
procedure TForm1.Button1Click(Sender: TObject);  
begin  
  Timer1.Interval:=300000;  
  Timer1.Enabled:=true;   // Wartezeit läuft ab jetzt
end;  
 
procedure TForm1.Timer1Timer(Sender: TObject);  
begin  
  Timer1.Enabled:=false;  // Wartezeit ist um, Timer abschalten, da ShowMessage wartet!
  ShowMessage('Fünf Minuten sind jetzt um !!!');  
end;


Zuletzt bearbeitet von wdbee am So 27.03.05 15:24, insgesamt 1-mal bearbeitet
Marco15 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 98

Win XP Prof.
D2 Schüleredition, D7
BeitragVerfasst: So 27.03.05 15:19 
Jo Danke!!!
So ausführlich beschrieben brauchte ich das gar nicht, vielen Dank. :D