Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Internet
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

Grupo de Teaming del ClubDelphi

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 25-06-2003
Avatar de __hector
[__hector] __hector is offline
Miembro Premium
 
Registrado: may 2003
Ubicación: Santo Domingo, Rep. Dom.
Posts: 1.075
Poder: 23
__hector Va por buen camino
Que version de delphi utilizas?

Puedes utilizar componentes FastNet? Hice una vez una aplicacion que utilizaba dichos componentes, el componente tiene propiedades como bytessent, bytesreceived y bytestotal con el cual puedes calcular el tamaño y el avance del progressbar (en el evento packetreceived)

bueno, si te sirve, seria algo como:

Código:
procedure TForm1.ftpPacketRecvd(Sender: TObject);
begin
        if (ftp.BytesTotal = ftp.BytesRecvd) then begin
            Application.Terminate;
        end;
       ProgressBar1.Max := Trunc(ftp.BytesTotal);
       ProgressBar1.Position := trunc(ftp.BytesRecvd);
end;

procedure TForm1.ftpConnect(Sender: TObject);
begin
    FTP.Download('ProyectoCTV.exe', 'C:\WINNT\ProyectoCTV.exe');
end;
Cambiarias bytesRecvd por BytesSent, y el metodo Download por Upload, o algo asi
__________________
Héctor Geraldino
Software Engineer
Responder Con Cita
Respuesta


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 18:09:14.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi