Hi, I'm starting to get into dynamic forms.
After I've created a form dynamically, FrmGotoFrm() displays it perfectly. But the second and subsequent times I call FrmGotoFrm() for that form, the title is showing up corrupted. So far, there's not much on the form, but I anticipate that corruption of form objects might happen as well. When I get the FrmLoadEvent, I'm just setting an event handler and setting the form active. When the form's event handler gets the open event, it calls FrmDrawForm and indicates the event is handled. When the form's EH gets frmCloseEvent, it does nothing, but indicates the event has been handled. The form's title is set from a string whose space (including null terminator) has been allocated via MemPtrNew(). I've no idea why this string is getting over-written. I need to ask - is it reasonable to indicate that the frmCloseEvent has been handled, even though my handler is doing nothing? (Because if I don't indicated handled, the form is getting destroyed by PalmOS). Or is it 'better behaviour' to allow PalmOS to destroy the form on frmCloseEvent, and should I instead re-create the form before I re-display it? And is there any reason why the form's title is getting scribbled over? By the way - if I re-create the form with FrmNewForm(), it displays perfectly. Thanks for any advice Cheers David -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
