My main form is getting penUpEvents that were generated by tapping on a
control on another form that's since gone away.  How do I avoid this?

Here's the chain of events

Main form event handler does a FrmPopupForm(), launching Form A
        User clicks on a Button in Form A
        Form A's handler ignores the penDownEvent (returns false)
        Form A's handler handles the ctlSelectEvent for the button by
                posting a custom event (EvtAddEventToQueue) and calling
                FrmReturnToForm(0) and returning true
        (Form A's event handler never gets the penUpEvent)
Main form event handler gets the custom event posted above
Main form event handler gets a penUpEvent at the coordinates tapped inside
        the button in Form A -- even though I haven't tapped anywhere.

I can fix the main handler to discard unmated penDownEvents, but isn't
there a way to keep them from getting sent?  How?

Thanks,

--Eric House

PS This seems like something that ought to be answered in the
Knowledge Base, but I can't figure out how to do a query.  Maybe
somebody who's had success with it can share some tips.  How would you
ask Palm's website this question?  (Just searching for "penUpEvent"
yields nothing.)

******************************************************************************
* From the desktop of: Eric House, [EMAIL PROTECTED]                            *
*     Check out Crosswords for PalmOS: <http://www.peak.org/~fixin/xwords>   *
*          "The instructions said 'Win98 or better' -- so I installed Linux" *
******************************************************************************

Reply via email to