some more details
appeventloop looks like this:

//initialize form and set form-specific eventhandler
static Boolean AppHandleEvent(const EventType *e)
{
    Boolean handled=false;
    UInt16 formID;
    FormType *frmP;

    switch(e->eType)
    {
        case frmLoadEvent:
            formID=e->data.frmLoad.formID;
            frmP=FrmInitForm(formID);
            FrmSetActiveForm(frmP);
            switch(formID)
            {
                case MainForm:
                    FrmSetEventHandler(frmP,MainFormHandleEvent);
                    handled=true;
                    break;
                
                default:
                    //it shouldn't get here
                    break;      
            }
            break;
        
        case menuEvent:
            handled=MainMenuHandleEvent(e);
            break;

        default:
            break;      
    }
    return(handled);
}

//main loop
static void EventLoop(void)
{
    EventType e;
    Err err;

    while(1)
    {
        EvtGetEvent(&e,evtWaitForever);

        if(!(SysHandleEvent(&e)))
          if(!(MenuHandleEvent(0,&e,&err)))
            if(!(AppHandleEvent(&e)))
              FrmDispatchEvent(&e);

        if(e.eType==appStopEvent)
          break;
    }
}

andd all forms i have are without any title so i use full screen for my
controls. never before i used this approach so it may be in it?


Michal Seliga wrote:
> hi
> 
> i have very strange problem
> 
> so far every application i made supports 5way navigator - so i can move on 
> form
> control using it and use center to press buttons
> 
> and now i made application where this doesn't work. i never did anything 
> special
> to enable it and it worked. and now i don't understand why it doesn't
> 
> any idea on what could be wrong?
> 

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

Reply via email to