Thanks for all of the help.

I will, ofcourse, document the HECK out of my code where I use the custom
event.  I will need to do more custom events as my app moves out of infancy
in to its toddler stage and will need a bit more sophisticated custom event
handling.

I just wanted to hear the opinions of people who have made this stuff work
in the pass.

You guys have been extremely helpful!

Thanks again,

Brad Figler

"Evan Wise" <[EMAIL PROTECTED]> wrote in message
news:91358@palm-dev-forum...
>
> its actually not that hard.
> define your new type, create a new enum and then use the
> myNewEvent.generic.datum field (where datum is an array of 8 UInt16's.)
> Put whatever data (pointers to handles etc) you want into the datum
> field of your new event.
> I have done this in the past and it works quite nicely. As for
> maintainability, comment the beejeezus out of it if you are worried. :)
> If you add your own NewEventType struct and those events are 200 bytes
> instead of the usual size then you could possibly blow the event queue
> if the event is used frequently enough. (wild conjecture here folks, i
> have only ever blown the event queue by putting to many things into it).
> E/.
>
> On Wed, 2002-07-17 at 13:31, Brad Figler wrote:
> > 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
>
>
>
>
>



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

Reply via email to