Ham
10-13-2005, 06:06 AM
I dont know if there is already a topic for this but if its not here is my question.
If i say:
-- Show the StatusDlg
StatusDlg.Show(0, false);
-- Set statusdlg title and message
StatusDlg.SetTitle("Downloading . . . ");
-- Set meter range (max range = 65534)
StatusDlg.SetMeterRange(0, 100);
-- Download a file from the internet to the user's computer
-- Uses DownloadCallback() as the callback function
HTTP.Download("http://yourdomein/yourshare", _SourceFolder.."\\yourshare.zip", MODE_BINARY, 20, 80, nil, nil, nil);
-- Hide the StatusDlg
StatusDlg.Hide();
Than this code works great. But i want also a cancel button in there. What code will work with this script? i try a few but without any luck.
Thanks.
If i say:
-- Show the StatusDlg
StatusDlg.Show(0, false);
-- Set statusdlg title and message
StatusDlg.SetTitle("Downloading . . . ");
-- Set meter range (max range = 65534)
StatusDlg.SetMeterRange(0, 100);
-- Download a file from the internet to the user's computer
-- Uses DownloadCallback() as the callback function
HTTP.Download("http://yourdomein/yourshare", _SourceFolder.."\\yourshare.zip", MODE_BINARY, 20, 80, nil, nil, nil);
-- Hide the StatusDlg
StatusDlg.Hide();
Than this code works great. But i want also a cancel button in there. What code will work with this script? i try a few but without any luck.
Thanks.