Autor Beitrag
schuetz10
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 20



BeitragVerfasst: Di 22.03.05 17:43 
Hallo an alle.

Ich habe auf meinem Formular einen Timer. Beim Ereigniss OnCloseQuerry möchte ich den Timer stoppen, wenn CanClose = false dann soll er wie der starten.

Geht dass :?:

mfg
schuetz10
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Di 22.03.05 17:49 
:welcome: im DF!!!!! ;)

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure Irgendwas.OnCloseQuerry(kA);
begin
if CanClose = False then Timer1.Active := True else Timer1.Active := False;
end;

Ungefähr so?? ;)
schuetz10 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 20



BeitragVerfasst: Di 22.03.05 17:54 
Ja, genau das habe ich gesucht :D

Danke

mfg
schuetz10
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Di 22.03.05 17:58 
kP... 8)

Aber... Hast du schonmal darüber nachgedacht dir ein Delphi-Buch zu kaufen? Weil if-Abfragen sind eigentlich so immer in nem Programm drin... ;)
schuetz10 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 20



BeitragVerfasst: Di 22.03.05 18:17 
Du hast mich falsch verstanden. Mir ist es nicht um die if Abfrage gegangen, sondern um den Befehl, mit dem ich den Timer aktivieren und deaktivieren kann :wink:

schuetz10
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Di 22.03.05 18:19 
Achso... :oops: Sorry... ;) Nicht böse sein... ;) Bin halt ganz DF-geschädigt... :lol: