Matthew,
At 12.24 02/09/99 -0400, you wrote:
>2) Alternatively (and easier), don't use a button. Where you'd normally put
>your "Done" button, just place some text that says "Tap the screen to exit"
>or something like that.
I completely agree. I had a similar problem, and I got it solved this way:
...
err=EvtFlushPenQueue();
for (i=start; i<stop; i++)
{
if (EvtSysEventAvail(false))
break;
...
By passing "false" to EvtSysEventAvail, you ignore the penUp events. As you can see, you need to flush the pen events queue before entering the loop. I find this solution more reliable because this way you don't miss important events such as low battery condition. In fact, your code may lead to a totale loss of data.
I hope it helps,
GL
-----------------------------------------------------------------------------
Gianluca Barbaro
Storm Comunicazione & Tecnologia - Via B. De Rolandi, 1 - 20156 Milano - Italy
tel. +39-02-33.00.74.68 - fax +39-02-39.21.54.84
mailto:[EMAIL PROTECTED] - web site: http://www.storm.it
Makers of http://www.wincearch.com
the search engine for Windows CE
Makers of http://www.palmpointer.com
the search engine for Palm Computing Platform
-----------------------------------------------------------------------------
- How to stop infinite loop by push button or some other wa... Allen Yang
- RE: How to stop infinite loop by push button or some... Kevin O'Keefe
- Re: How to stop infinite loop by push button or some... Matthew D Moss
- RE: How to stop infinite loop by push button or some... Allen Yang
- Re: How to stop infinite loop by push button or some... Dave Lippincott
- Re: How to stop infinite loop by push button or some... Aaron Ardiri
- Re: How to stop infinite loop by push button or some... Matthew D Moss
- Re: How to stop infinite loop by push button or some... Gianluca Barbaro
- Re: How to stop infinite loop by push button or some... David Fedor
