> http://www.palm.com/devzone/docs/pptdg/TableOfContents.htm Check out the
> chapter about forms and you should find the answer to your problem :)
That tutorial seems to be a little more newbie-friendly than the PalmOS
Programmer's Companion. Unfortunately, the example in the tutorial that
explains how to display a modal form behaves exactly as the code I posted in
my first mail.
What is the correct way to show a modal dialog with save behind disabled?
/Alex/
--- How to display a modal form according to the tutorial mentioned
above ---
static Word DisplayMyFormModally(void)
{
FormPtr previousForm = FrmGetActiveForm();
FormPtr frm = FrmInitForm(MyForm);
Word hitButton;
FrmSetActiveForm(frm);
// Set an event handler, if you wish, with FrmSetEventHandler
// Initialize any form objects in the form
hitButton = FrmDoDialog(frm);
// read any values from the form objects here
// before the form is deleted
if (previousForm)
FrmSetActiveForm(previousForm);
FrmDeleteForm(frm);
return hitButton;
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html