> Hmm, my guess would be that you return true (means event handled)
in
> your handle event function for your form when checking for
pen-events...

Here is my handle event function:
/* This routine is the event handler for the "MainForm" of this
application. */
static Boolean MainFormHandleEvent(EventPtr eventP)
{
        Boolean handled = false;
        FormPtr frmP;

        switch (eventP->eType) 
        {
                case menuEvent:
                        return MainFormDoCommand(eventP->data.menu.itemID);

                case frmOpenEvent:
                        frmP = FrmGetActiveForm();
                        MainFormInit(frmP);
                        FrmDrawForm (frmP);
                        WinSetDrawWindow(real_win);
                        handled = true;
                        break;
                        
                case frmUpdateEvent:
                        /* To do any custom drawing here, first call FrmDrawForm(), 
then
do your
                         drawing, and then set handled to true. */
                        frmP = FrmGetActiveForm();
                        FrmDrawForm ( frmP);
                        WinSetDrawWindow(real_win);
                        handled = true;
                        break;

                case penDownEvent:
                        if (FrmGetActiveFormID() == MainForm)
                        {
                        
screen_pressed(WinScaleCoord(eventP->screenX,true),WinScaleCoord(eventP->screenY,true));
                                handled = true;
                        }
                        break;

                case penUpEvent:
                        if (FrmGetActiveFormID() == MainForm)
                        {
                        
screen_unpressed(WinScaleCoord(eventP->screenX,true),WinScaleCoord(eventP->screenY,true));
                                handled = true;
                        }
                        break;

                default:
                        break;
        }
        return handled;
}

It perfectly reacts when I press the creen during the animation, so
it means that I am checking the correct form. But it seems that when
I open the menu, the 'case menuEvent:' part is never matched. I told
it to draw a random number on the creen just before "return
MainFormDoCommand(eventP->data.menu.itemID);" and it did nothing.
It's just as if the menu events were ignored, except that I can
navigate between two pulldown menus (so I assume that the system does
not only draw the menu, it also handles it in some way). And it is
not that I am not checking the correct form, because the "case
menuEvent:" is never matched, whatever the form (and I have only one
form, as far as I know).
*sigh*
Best regards.




        

        
                
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Cr�ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis gr�ce � Yahoo! Messenger !T�l�chargez Yahoo! 
Messenger sur http://fr.messenger.yahoo.com

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

Reply via email to