Hello,

> Easy fix: don't do anything for penUp if you've not seen an earlier 
> penDownEvent.

That almost fixed it... the only problem I had then was that if I drop down a
menu, and then tap the screen outside of the menu to make it go away again, a
penDownEvent + penUpEvent sequence was still getting through to my handler.

Easy fix though: I just watch for a winEnterEvent, and if I see that I clear
the pen down state.

Now it works like a charm, and I have the whole of the screen area for users to
tap on to move to the next step in their driving directions.

Thanks!
John...
 
> This is an issue with Palm OS.  When you tap on a button, it goes into a 
> hard loop, calling EvtGenPen to track the pen's position.  When that 
> returns that the pen was up, the button handling code in the OS decides to 
> send off a ctlSelectEvent or do nothing.  However, nothing absorbs the 
> penUpEvent.
> 
> -- 
> Ben Combee <[EMAIL PROTECTED]>
> CodeWarrior for Palm OS technical lead
> Palm OS programming help @ www.palmoswerks.com 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/support/forums/


=====
Rate Corporate America at http://exec-ratings.bluedonkey.org

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.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