PDA

View Full Version : A Cancel button



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.

rhosk
10-13-2005, 06:36 AM
http://www.indigorose.com/webhelp/ams60/Program_Reference/Misc/Callback_Function_Examples.htm

StatusDlg.ShowCancelButton(true, "Stop Download");

:)

Ham
10-13-2005, 06:42 AM
LOL Thanks m8 i will try this :yes