But if I take out FrmSetActiveForm, the new form can't
initialize an edit control (for example) and I receive a fatal alert
("Index out of range" - referring to the edit control ID)
I've found doing modal forms in PalmOS to be a pretty big pain. I'd suggest trying to do it in a reusable way b/c it'd be a hassle to go through that all each time.
I don't know how POL works w/ modal forms, but I know we had to use the FormType * from FrmInitForm() in all of our ui calls for the modal form.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Kostka Sent: Friday, June 04, 2004 8:59 AM To: Palm Developer Forum Subject: Re: FrmDoDialog...
This is a guess, but maybe setting the active form to the modal dialog before FrmDoDialog and not resetting the active form after it closes is causing a problem. You could try taking out FrmSetActiveForm all together as I don't see why it has to be active before FrmDoDialog. You can still call the event handler explicitly or do any processessing on the controls of the form.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
