Autor Beitrag
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Do 01.06.06 16:42 
Hi,
kennt jemand von euch ein Timer Tutorial :?:
Ich habe auch schon gesucht aber nichts gefunden.
Ich war auch schon bei DSDT, hab aber nichts gefunden. :cry:
Ich hab noch nie mit Timern gearbeitet:
Leuchtturm

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
rizla
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 417
Erhaltene Danke: 2

XP
FPC mit Lazarus
BeitragVerfasst: Do 01.06.06 16:48 
Hi Leuchtturm!
Was genau ist denn bitte dein Problem?
Du meinst aber schon die ganz normalen Timer von Delphi, ja? :nixweiss:
:rizla:
Leuchtturm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Do 01.06.06 17:06 
Ja ich meine die ganz normalen Timer von Delphi.
Mein Problem: Ich suche nach einem Tutorial über Timer.
Habe ich die falsche Sparte gewählt?
Leuchtturm

Ps:Ich hätte nicht gewusst wo ich es sonst schreiben könnte

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5284
Erhaltene Danke: 27

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Do 01.06.06 17:33 
der timer hat doch nur eine prodzedur die man nutzt , bzw das event ontimer, wo liegt das problem ?

und mit problem ist nicht gemeint, dass du ein tutorial suchst, sondern was du von dem tutorial erwartest, bzw was das schwierige an einem timer ist Oo
Leuchtturm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Do 01.06.06 17:38 
Na Gut.
Kannst du mal bitte einen BeispielCode posten :?:

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Do 01.06.06 17:43 
Wie wäre es denn mit der Suche ? Dort wirst Du massig Beispiele Finden.
fidionael
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 232

Win XP SP2, Ubuntu 6.06
Delphi 7 PE, Delphi 3 Prof
BeitragVerfasst: Do 01.06.06 17:44 
Du fügst die Timer-Komponente in dein Formular ein. Dann stellst du im Object Manager den Intervall ein. Dieser ist in ms angegeben. Wenn du also z. B. möchtest, dass der Timer 1mal die Sekunde seine Prozedur aufruft, musst du den Intervall auf 1000 stellen. Nun kannst du einfach im Event-Bereich des Object Managers einen Doppelklick auf OnTimer machen und in die Prozedur reinschreiben, was, z. B. sekündlich gemacht werden soll.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
var i: Integer;

procedure TForm1.FormCreate(Sender:TObject);
begin i:=0end;

procedure TForm1.Timer1Timer(Sender: TObject);
begin
  inc(i);
  Label1.Caption:=Format('Timerprozedur wurde bis jetzt %d mal ausgeführt.',[i]);
end;


Mfg
Leuchtturm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Do 01.06.06 17:46 
Danke

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.