Don't use FrmPopupForm/FrmReturnToForm  I'd try restructuring the app to use
FrmGotoForm in this case.  That way the original form and its components
will get reloaded.  No need to worry about setting the save behind bit and
etc.

----- Original Message -----
From: "Geoff Thompson" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 2:26 PM
Subject: Re: How do I update a field handle on the 'calling' form from the
form loaded by FrmPopupForm?


> I am still stuck and would appreciate some advice here.  This is what I'm
> trying right now:
>
> I set a global handle from the calling form's field handle (leaving the
> handle in place in the calling field), and then call
>
>     FrmPopupForm(Popup);
>
> The popup works fine - the helper function allows the entry of text.  I
then
> release the
> handle from the popup form field (it is still in globals) and return to
the
> calling form via
>
>     FrmReturnToForm(0);
>
> The Palm doc is unclear about the functionality of FrmReturnToForm,
> especially the stuff about "Save Behind" and so-forth.  However, Save
Behind
> would be of no use to me, because the field's contents have been changed,
> and therefore must be 'refreshed' anyway.
>
> I tried adding
>
>      FrmUpdateForm(0, frmRedrawUpdateCode);
>
> and capturing this code in the MainFormHandleEvent, but interestingly,
>
>     #1.  The event gets called twice, and
>     #2.  It doesn't refresh the field.
>
> I tried looping through the fields calling FldDrawField(i) and that didn't
> do it either.
>
> What am I missing?
>
> Geoff
>
>
> "Geoff Thompson" <[EMAIL PROTECTED]> wrote in message
> news:83283@palm-dev-forum...
> >
> > The Popup form is a helper form that helps edit field contents on the
> > calling form.  After the user is 'done' with the helper, they click a
> "done"
> > button, which triggers the FrmReturnToForm(0).
> >
> > Can I 'refresh' the calling form prior to the FrmReturnToForm(0), or is
> > there an event I can trap somewhere to let me know the Popup form has
> > closed, so I need to refresh the updated field?
> >
> > Thanks,
> >
> > Geoff Thompson
> > [EMAIL PROTECTED]
> >
> >
> >
> >
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to