Hi,

I would like to know how to clear penDownEvents/penUpEvents (maybe
others).
I have tried the following:

I have a simple application that shows some bitmaps during the
frmOpenEvent.
After the bitmaps have been shown, the application is closed using
AddKeyDownEvent.

case frmOpenEvent:
   frmP = FrmGetActiveForm();
   FrmDrawForm(frmP);
   MainFormInit(frmP);
   ShowBitmaps(frmP);
   AddKeyDownEvent(vchrLaunch); //set to close application
   handled = true;
   break;


/* Emulate a keydown event */
static void AddKeyDownEvent(WChar character)
{
   EventType theEvent;
   MemSet(&theEvent, sizeof(EventType), 0);

   /* Create the key down event */
   theEvent.eType = keyDownEvent;
   theEvent.data.keyDown.chr = character;
   theEvent.data.keyDown.keyCode = 0;
   theEvent.data.keyDown.modifiers = commandKeyMask;

   /* Add the event to the event queue */
   EvtAddEventToQueue(&theEvent);
}

If the screen is tapped while the bitmaps are shown then some
penDownEvents/penUpEvents are generated.

I tried using EvtFlushPenQueue in a frmCloseEvent to clear the
penDownEvents/penUpEvents but this does not work.

Any suggestions?

Thanks,
Ken

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

Reply via email to