Autor Beitrag
Grolle
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 95

Win XP, Win 7
Delphi 2010 Pro
BeitragVerfasst: Di 21.06.05 15:59 
Hallo!
Ich nutze in meinem Programm ein Delay.
An einer bestimmten Position soll eine neue
Form mit einer Progressbar für 25 sec angezeigt werden.
Wie kann ich das am einfachsten umsetzen?
Viele Grüße: Grolle
MrFox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 208

WIN 2000 Professional, Ubuntu 5.10
D3 Prof, D7 Pers, D2005 Pers, Java (Eclipse)
BeitragVerfasst: Di 21.06.05 17:39 
-Du erstellst ein neues Formular
-Ziehst einen Timer und eine Progressbar drauf
-Änderst die Eigenschaft Max der Progressbar auf 25
-Stellst die Eigenschaft Enbaled des Timers auf false
-In das Ereignis OnTimer schreibst du Progressbar1.Position := Progressbar1.Position+1;
-Und if Progressbar1.Position > 24 then begin Timer.Enabled := false; FormX.Close;end;
-Bei FormActivate brauchst du nur noch die Progressbar auf 0 setzen und den Timer Enablen

_________________
Das Leben auf der Erde mag zwar teuer sein, aber eine jährliche Rundreise um die Sonne ist gratis mit dabei.