Hi,
This is how I do it.
typedef enum { /* User defined events */
userReadPort = firstUserEvent,
userValidMsg,
userRadioBattLow,
userVectorRedraw,
userModeChange
} user_eventsEnum;
EventType user_event;
user_event.eType = (eventsEnum)userValidMsg;
EvtAddEventToQueue (&user_event);
Rik
> -----Original Message-----
> From: Brian Mathis [SMTP:[EMAIL PROTECTED]]
> Sent: 22 September 2000 09:38
> To: Palm Developer Forum
> Subject: Re: custom events?
>
> Rhys Arkins wrote:
> >
> > Is it possible to create custom Palm events that can be put into the
> event
> > queue and later handled by a custom handler? If so, could someone point
> me
> > to some documentation for it as I tried searching for it in the
> knowledge
> > base but with no luck.
> >
> > thanks,
> > Rhys.
>
>
> Yes, you can. If you look here:
> http://www.palmos.com/dev/tech/docs/palmos/EventRef.html#925384, you'll
> notice
> the last event in the enum, "firstUserEvent". Basically, you can start
> using
> this to create your own events, just increment the event number for each
> event.
>
> ex:
> myEvent1 = firstUserEvent;
> myEvent2 = firstUserEvent + 1;
>
> --
> Brian Mathis
> Direct Edge
> http://www.directedge.com
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/