Ver Mensaje Individual
  #48  
Antiguo 05-08-2007
Avatar de seoane
[seoane] seoane is offline
Miembro Premium
 
Registrado: feb 2004
Ubicación: A Coruña, España
Posts: 3.717
Reputación: 26
seoane Va por buen camino
Cita:
Empezado por Caral
Hola
Pues no se, aqui se aprende de todo.
Me quedo la duda de la velocidad en el componente, no se puede cambiar.?
Os fijasteis?
Jeje, con las prisas copie dos veces lo mismo:

Donde pongo:
Código:
procedure TAnimLabel.SetVelocidad(Valor: Integer);
begin
  If FVelocidad <> Valor then
  begin
    if Valor <= 0 then
    begin
      FVelocidad:= 0;
      FTimer.Enabled:= FALSE;
    end else
    begin
      FVelocidad:= 0;
      FTimer.Enabled:= FALSE;
    end;
    FTimer.Interval:= FVelocidad;
  end;
end;
Tenia que haber puesto:
Código:
procedure TAnimLabel.SetVelocidad(Valor: Integer);
begin
  If FVelocidad <> Valor then
  begin
    if Valor <= 0 then
    begin
      FVelocidad:= 0;
      FTimer.Enabled:= FALSE;
    end else
    begin
      FVelocidad:= Valor;
      FTimer.Enabled:= TRUE;
    end;
    FTimer.Interval:= FVelocidad;
  end;
end;
Responder Con Cita