Hi there,

I didn't look very carefully the 2 files. I think, at least you miss this case 
in AppHandleEvent

HTH,
tnn

You would need the prototype 
extern Boolean SecondaryFormHandleEvent(EventPtr eventP);

static Boolean AppHandleEvent(EventType * eventP)
{
    UInt16 formId;
    FormType * frmP;

    if (eventP->eType == frmLoadEvent)
    {
        /* Load the form resource. */
        formId = eventP->data.frmLoad.formID;
        frmP = FrmInitForm(formId);
        FrmSetActiveForm(frmP);

        /* Set the event handler for the form.  The handler of the
         * currently active form is called by FrmHandleEvent each
         * time is receives an event. */
        switch (formId)
        {
        case MainForm:
            FrmSetEventHandler(frmP, MainFormHandleEvent);
            break;

        case SecondaryForm:
            FrmSetEventHandler(frmP, SecondaryFormHandleEvent);
            break;

        default:
            break;

        }
        return true;
    }

    return false;
}

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

Reply via email to