Hi,
I have a form which has a popup trigger in the title area similar to categories. When
a certain item is chosen from the list, a modal form is shown. If one button is
chosen, the process goes back to the original form. This works fine. If another
button is chosen, I erase the original form, delete the modal form and do a
FrmGotoForm(MynewForm) to go to the new form. At the top of the new form, the label
from the popup trigger of the original form is still there. Can anyone help?
Code sample:
static Boolean DoShowModal(UInt16 returnAction)
{
UInt16 hitButton;
FormPtr previousForm = FrmGetActiveForm();
FormPtr frm = FrmInitForm(MyModalForm);
FrmSetActiveForm(frm);
hitButton = FrmDoDialog(frm);
if(hitButton == MyModalSaveButton)
{
if(returnAction)
{
FrmSetActiveForm(previousForm);
FrmDeleteForm(frm);
}
else
{
FrmSetActiveForm(previousForm);
if(previousForm)
FrmEraseForm(previousForm);
FrmGotoForm(StartForm);
FrmDeleteForm(frm);
}
}
else if(previousForm)
{
FrmSetActiveForm(previousForm);
FrmDeleteForm(frm);
}
return true;
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/