Ver Mensaje Individual
  #4  
Antiguo 10-05-2003
Avatar de jhonny
jhonny jhonny is offline
Jhonny Suárez
 
Registrado: may 2003
Ubicación: Colombia
Posts: 7.058
Reputación: 30
jhonny Va camino a la famajhonny Va camino a la fama
Thumbs up

Bueno, Cuando lo hice use dos Ttimer con 50 en su propiedad interval y un TLabel.

Y La propiedad enabled del primero en "True", y la del segundo en "False"

En el Evento OnTimer del primero Puse Algo asi:

Código:
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Label1.Left:=Label1.Left+10;
if label1.Left>=500 then
begin
Timer2.Enabled:=True;
Timer1.Enabled:=False;
end;
end;
Y en el sugundo asi:

Código:
procedure TForm1.Timer2Timer(Sender: TObject);
begin
Label1.Left:=Label1.Left-10;
if label1.Left<=0 then
begin
Timer1.Enabled:=True;
Timer2.Enabled:=False;
end;
end;
Y listo Ahora si, Espero te funcione...
__________________
Lecciones de mi Madre. Tema: modificación del comportamiento, "Pará de actuar como tu padre!"

http://www.purodelphi.com/
http://www.nosolodelphi.com/

Última edición por jhonny fecha: 10-05-2003 a las 01:23:35.
Responder Con Cita