> I am calling FrmGotoForm(FormB) to switch from FormA to FormB.
> In the frmCloseEvent handler of FormA I'm calling FrmAlert to check if the
> user wishes to save the currently open file to flash.
> The problem is that the FrmAlert event loop eats the frmLoad and frmOpen
> events for FormB.
> Once the Alert closes, I'm stuck without an open form.
> There are ways around the problem,
> I'm just surprised that I haven't come across this in the docs, has anybody
> else?.
how about calling FrmAlert() [confirm] prior to posting the frmCloseEvent?
it is possible to do it the way you want, but, you should return "true"
to the event handler call if the confirmation fails, and, you need to
make sure the system hasn't processed the events yet (it may do some
work to prepare for closing of the form)..
best option:
[click on button] -> confirm -> if yes, post frmCloseEvent()
hope that helps.
---
Aaron Ardiri
CEO - CTO
Mobile Wizardry
http://www.mobilewizardry.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/