The whole point of the union-data element is to allow custom data for the event. If you document your code properly (not that you won't), someone performing code maintenance should not have a problem.
----- Original Message ----- From: "Brad Figler" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Wednesday, July 17, 2002 4:31 PM Subject: Re: Custom Events > 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/
