I am using the FTP2 component and want to monitor download progress, but the event doesn't seem to be firing. I'm using the example from the website (Delphi)
FTPClient.OnGetProgress := ChilkatFtp21GetProgress; // hook into the callback
procedure TUpdateManager.ChilkatFtp21GetProgress(ASender: TObject; pctDone: Integer);
fProgressFrm1.ProgressBar1.Position := pctDone;
This is how it should look:
answered Oct 31 '13 at 09:42
Thanks for the reply. I've changed the create to 'Self' but it makes no difference. Still no callback being fired.
Could it be that it doesn't work because I'm using an older version of Delphi (5)?
answered Oct 31 '13 at 10:23
I just needed to add AutoGetSizeForProgress := 1; and it worked fine.
Thanks for the other pointers. All happy now!
answered Oct 31 '13 at 10:55