Thanks for the help. I figured this much out already (I did a poor job of
asking the right question).
How do I send data with a custom event. I don't see anyplace in the
EventType structure to pass custom data with the event. I could always use
one of the unioned structures in place, but, from a code point of view it is
not going to make much sense to the next guy who comes through and has to
maintain the code!!!
For example:
switch( event->eType )
case MyCustomEvent:
do something with event->data.frmOpen.formID; // Why
use frmOpen with MyCustomEvent type????
Any suggestions on the cleanest way to do this???
Thanks again,
Brad Figler
"Dave Lippincott" <[EMAIL PROTECTED]> wrote in message
news:91280@palm-dev-forum...
>
> You handle custom events the same way you post and handle any other
message
> to the OS, just define your custom event starting with firstUserEvent +
> somenumber, initialize your event structure and add it to the event queue.
> If you have the proper event handler in place, you'll receive your event.
> Read up on EvtAddEventToQueue, EvtAddUniqueEventToQueue, and the event
> section in the API reference. Just about everything you need to know is
> there.
> http://oasis.palm.com/dev/kb/manuals/sdk/EventRef.cfm
> http://www.etomi.com/palm/palm-intro.html
> may help.
>
> ----- Original Message -----
> From: "Brad Figler" <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-forum
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 17, 2002 1:15 AM
> Subject: Custom Events
>
>
> > Can someone explain how to create a custom event and add it to the event
> > queue????
> >
> > Thanks in advance,
> >
> > Brad Figler
> >
> >
> >
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/