At 14:58 2001/08/17 -0500, you wrote:
>hi,
>
>im trying to implement the please wait dialog in my app. This is what im
>doing with my code, here are two snippets of my code, I call
>FrmPopupForm(PleaseWaitForm) and that goes to the PleaseWaitForm Event
>Handler. The PleaseWaitForm waits for a nilEvent, when it occurs I call
>FrmReturnToForm(0). Then i want it to keep processing and go to
>ConfigName(UnsuccessfulAlert).
Try this sort of thing....
pDialog = FrmInitForm(formID);
FrmDrawForm(pDialog);
... do the thing that takes awhile. not good to take too long...
FrmEraseForm(pDialog);
FrmDeleteForm(pDialog);
Another option is to implement a progress dialog.
Erik Blake
>Now it goes through with no errors, but the Please Wait From never gets
>displayed. I don't know how to do it???
>
>Thanks for any help...
>
>James
>
>case ctlSelectEvent:
> {
> switch (eventP->data.ctlSelect.controlID)
> {
>
> case ConfigOKButton:
> FrmPopupForm(PleaseWaitForm);
> ConfigName(UnsuccessfulAlert);
> FrmReturnToForm(RetrieveSendForm);
> handled = true;
> break;
>
>static Boolean PleaseWaitFormHandleEvent(EventPtr eventP)
>{
> Boolean handled = true;
> FormType *frmP = FrmGetActiveForm();
>
> switch (eventP->eType)
>
> {
> case frmOpenEvent:
> frmP = FrmGetActiveForm();
> FrmDrawForm ( frmP);
> handled = true;
> break;
>
> case nilEvent:
> FrmReturnToForm(0);
> handled = true;
> break;
>
> default:
> break;
>
> }
>
> return handled;
>}
>
>
>Thanks
>
>
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
>please see http://www.palmos.com/dev/tech/support/forums/
-------------------------------------------------------------------
Icefield Tools Corporation tel: (867) 633-4264
PO Box 30085 fax: (867) 633-4217
Whitehorse, Yukon CANADA e-mail: [EMAIL PROTECTED]
Y1A 5M2 internet: http://www.icefieldtools.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/