> I am a little confused. I don't know which is the proper way to handle a
> popSelectEvent. Do I do this:
>
> case popSelectEvent:
> switch(event->data.lstSelect.listID) {
> // more stuff
>
> Or this:
>
> case popSelectEvent:
> switch(event->data.popSelect.listID) {
> // more stuff
either way will work (as the structures of lstSelect and popSelect
are the same).. *but*, every event has an associated structure in
the event->data memory area.
you should be using "event->data.popSelect.listID" with the
popSelectEvent, because if they change lstSelect in the future,
you wont have to change your code as well :)
it just happens to be a *side-effect* of the union structure :P
the same applies for most of the other event's..
cheers.
az.
--
Aaron Ardiri
Java Certified Programmer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 656 1143 A/H: +46 8 668 78 72
if you enjoy it, then it aint work :) - rule #106 of life
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html