Hi,
I use FrmPopupForm to popup modal dialogues ontop of normal forms.
To return I use FrmReturnToForm (MainForm); - if you replace main
form with 0, you go back to the last form (be carfull if you have more than
one form open though, as I think you actually go back to the first opened
form).
To use this method your modal forms will need there own event handlers. Make
sure you check the save behind box in constructor for your modal form, then
when you hit cancel, call FrmReturnToForm and all will be well.
Rik
> -----Original Message-----
> From: Manal Milad [SMTP:[EMAIL PROTECTED]]
> Sent: 19 February 2001 14:08
> To: Palm Developer Forum
> Subject: Form loading
>
> Here is the scenario:
>
> Most of the time, I have only one form displayed, let's call it MainForm.
> I
> can select different menu items and each will display a modal form.
> If I select OK, I want to get rid of the new modal form and redraw the
> MainForm again (some data will be updated).
> If I select cancel, I want to get rid of the new modal form and go back to
> the old MainForm. I don't need to redraw it again.
>
> Now, I got confused, what should be used: FrmGotoForm or FrmDoDialog.
> Do I have to earse and delete the form, before drawing the other one.
> I get the error: Form already loaded at some points.
> Which should be used?
>
> Thanks
> Manal
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/