Can I use the following code in my App Event function to trap and ignore the
application launcher and find buttons when pressed by the user?  Is it OK to
just ignore these events?  Am I doing all the right testing to make sure I'm
trapping ONLY these events?

Thanks.

do
{
    EvtGetEvent(&event, evtWaitForever);

    // This will trap the launch and find silk screen button press.
    if( event.eType == keyDownEvent )
    {
        // Must be a virtual key character...
        if ( event.data.keyDown.modifiers & commandKeyMask )
        {
            if( event.data.keyDown.chr == vchrFind )
                continue;

            else if( event.data.keyDown.chr == vchrLaunch )
                continue;
        }
    }

    if (! SysHandleEvent(&event))
        if (! MenuHandleEvent(0, &event, &error))
            if (! AppHandleEvent(&event))
                FrmDispatchEvent(&event);

} while (event.eType != appStopEvent);





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

Reply via email to