I assume you're popping up the window with FrmPopuForm() and you want to
close it with FrmReturnToForm(). Yes, you will need to free up any memory
you allocate. Ideally, this should be done when a frmCloseEvent occurs, but
as you point out, FrmReturnToForm() does not send that event.
Usually, a popup form has a "Done" or "Okay" button. I clean up when the
user taps the "Done" button, just before calling FrmReturnToForm(0).
Regards,
Michael Yam
www.ytechnology.com
Gordon, Douglas <[EMAIL PROTECTED]> wrote in message
news:11547@palm-dev-forum...
>
> It says in the reference manual that FrmReturnToForm does not generate a
> frmCloseEvent "when called from a modal form's event handler". If I have a
> field on the current form that has a text handle set by FldSetTextHandle,
> will this handle be freed or not if I call FrmReturnToForm?
>
> Also, what does the "when" clause in the manual mean exactly? Does the
> system know that the function is being called from a modal form? How? The
> form from which this will be called will be activated by FrmPopupForm.
Does
> this make it modal?
>
> I guess what I'm looking for here is the technique to use to pop up my own
> modal form with my own event handler (instead of using FrmDoDialog) and
then
> return cleanly to the original form with all resources properly cleaned
up.
> What is the sequence of Frm... calls?
>
> Doug Gordon
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/