PDA

View Full Version : Heeeellllp! Status Dialog Problem


drummernath
10-26-2009, 09:10 PM
hey people, hope your all ok, i am having some issues with the status dialog

im trying to show the progress of sending a message using http submit


StatusDlg.Show();
StatusDlg.ShowProgressMeter(false);
StatusDlg.SetTitle("Php Mailer");
StatusDlg.SetStatusText("Sending Your Message To: "..to.."...");
HTTP.Submit(url, {to=to, subject=subject, message=message}, SUBMITWEB_POST, 20, 80, nil, nil);
Application.Sleep(2000);
StatusDlg.Hide();


but everytime it doesnt set the titles and messages to what i asked it to, instead it does its own thing and says its downloading a file, and i really need it to say what i have set it as, it works if i take the http submit out but doesnt if i have it there,

any ideas;

Nathaniel Blackburn

jassing
10-26-2009, 09:26 PM
That's annoying -- it doesn't say it supports callback; but it is using one; and you can't use your own. "bug" I would say.

The normal thing you do is pass it "nocallback" as the callback function; and just create a callback that does nothing:
function nocallback()
return true
end

but in this case you can't specify one. Not sure you're going to be able to work around that using statusdlg

You should probably create a DialogEx that says "please wait" or whatever, and have THAT download the file..