Regis Daniel de Oliveira wrote:
> When we use the SelectDay function on Palm, the system shows up a screen
> where we can select the date. While the form is open, the parent
> application "waits" until the form is closed. After the form is closed,
> the parent application continue executing.
> 
> I need to make a form that should work as the DateSelector. I already
> have the form, but, when i call my custom function, my screen appear
> (I'm using FrmPopupForm) but the parent form doen't wait the 2nd form be
> closed to continue.

If you want the thread of execution to block until the new form
is closed, the easiest way to do that is this:

        FormPtr mydialogptr = FrmInitForm (MyDialogForm);
        UInt16 buttonpressed = FrmDoDialog (mydialogptr);
        FrmDeleteForm (mydialogptr);

I believe you may be able to define a custom event handler for the
form by calling FrmSetEventHandler() right before FrmDoDialog(), but
I haven't done it in a while, so I'm not sure if that works or not.

  - Logan

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

Reply via email to