Last time I tried to do the same thing in my program, then I found that Palm
OS is really not up to this kind of trick -- at least from my limited
experiences. EvtGetEvent() only allows you to retrieve an event from the
queue, but does not allow you to "peek" into the queu before deciding if you
really want to get it. Windows Win32's API is much more flexible in this
regard. On Palm OS, the only way I can think of is to: get the event -->
check if it's what I can handle --> if not, add it back to the end of the
queue. But then this means the order of events is altered by me! This is an
intrusive process. I don't think this is a very good thing to do.
But then I found that actually all that I want was just pen messages, so I
just used PenGetEvent() like this:
while (true) {
PenGetEvent(&x, &y, &bPenDown);
if (!bPenDown)
break;
....
}
I know I'm not very experienced with Palm OS, so I'd love to see anybody can
give a "real" solution of making a custom event loop in applications.
"Mike McCollister" <[EMAIL PROTECTED]>
???????:[EMAIL PROTECTED]
>
> I seem to recall that there is a way to have a small event loop within a
> program. Does anyone know how to do this? This is basically what I am
wanting
> to do.
>
> doSomeStuff();
>
> {
> // event loop goes here
> }
>
> doSomeMoreStuff();
>
> Thanks,
>
> Mike
>
> __________________________________________________
> Do you Yahoo!?
> U2 on LAUNCH - Exclusive greatest hits videos
> http://launch.yahoo.com/u2
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/