Autor Beitrag
somebody
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 167
Erhaltene Danke: 2



BeitragVerfasst: Mi 16.05.07 20:54 
Hi Leutz, ich habe ein programm, wo nach 5 sekunden ein paar captions zurückgesetzt erden, das soll such alles so sein, aber ich wollte mal fragen ob man das auch ohne timer machen kann, wenn ja wie?

danke jetzt schon mal.
Saubäär
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 376



BeitragVerfasst: Mi 16.05.07 20:58 
Moin,

z.B. so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
var i: Integer;
begin
 for i := 1 to 5 do begin
  Application.ProcessMessages;
  Sleep(1000);
  end;

 Caption := ...
end;


Gruß
somebody Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 167
Erhaltene Danke: 2



BeitragVerfasst: Mi 16.05.07 21:05 
wo muss ich das hinschreiben, also in eine buzttonklick procedur oder in tform?
Saubäär
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 376



BeitragVerfasst: Mi 16.05.07 21:07 
Ich würds ins onActivate oder onCreate der Form schreiben, da die Captions ja 5 Sekunden nach Programmstart verändert werden sollen, wenn ich das jetzt richtig verstanden habe.

Gruß
somebody Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 167
Erhaltene Danke: 2



BeitragVerfasst: Mi 16.05.07 21:18 
Ne, eigentloch soll es 5 Sekunden nach einem Buttonclick, aber das ahbe ich schon alleine hingekriegt.

Thx

P.S.:Dieses Forum ist oberhammergeil, hier kriegt man auf alles eine Antwort. Macht weiter so!!!