"Phil Hodge" <[EMAIL PROTECTED]> wrote in message
news:53926@palm-dev-forum...
>
> Hello all,
>
> I have the following scenario: I would like to pop up a modal form
with no
> buttons on it (so it can't be a conventional FrmDoDialog which is
dismissed
> by a button click). I need it to say something such as 'Please
wait...'
> while I perform an operation which is going to take a while, then
dismiss it
> after the operation has finished.
> I can achieve this using FrmPopupForm, and respond to the frmOpen
event by
> calling the processing and then doing an FrmReturnToForm(0).

Phil, will the "Please Wait" form have any user controls?  If not, then
you can manage things yourself.

1) Put up the form using a series of

oldform = FrmGetActiveForm
FrmInitForm
FrmDrawForm
FrmSetActiveForm(newForm)

2) Do your processing.  If you want to update it, use the various Frm
and Ctl calls to update items on the active form

3) When you're done, do

FrmEraseForm
FrmDeleteForm
FrmSetActiveForm (oldForm)

Make sure your newForm as the "saveBehind" bit set, and bam, you've made
a modal popup with no event handling.

If you want to be friendly, suring your processing loop, you need to set
up an event loop... for that kind of advanced dialog work, look at the
application dialog code that Aaron Ardiri publishes in his sample code
at www.ardiri.com.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to