first define your event #define MyNewEventMessage ((events)(firstUserEvent +1))
Then just use it EventType newEvent; newEvent.eType = (events)MyNewEventMessage; // Now populate the structure with whatever data you may requires, you also may want to initialize the event struct to 0 EvtAddUniqueEventToQueue(&newEvent,0,true); ----- Original Message ----- From: "HowY" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[email protected]> Sent: Thursday, June 22, 2000 12:12 PM Subject: Custom Event > Hi > > Im trying to generate a power on event to test > aside from the nilEvent sent when the device is > powered up > > How is a custom event(type) defined > > if i try to addEventToQueue (WakeUpEvent) > ie: > eventP->eType=WakeUpEvent; > EvtAddEventToQueue (eventP); > > it complains that there is no such WakeUpEvent. > > How would a custom event be defined? and where? > > Thanks! > > > > > > -- > 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 ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
