--- Brad Figler <[EMAIL PROTECTED]> wrote:
> Can someone explain how to create a custom event and add it to 
> the event queue????

Here's some (untested) code.


  // 1. Create the event:

  // define some custom events
  typedef enum {
    myFirstCustomEvent = firstUserEvent,
    mySecondCustomEvent,
    // etc.
    myLastCustomEvent
  } myEvents;


  // 2. Add an event to the queue:

  EventType event;
  MemSet(&event, sizeof(EventType), 0);
  event.eType = (eventsEnum)myFirstCustomEvent;
  EvtAddEventToQueue(&event);


__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com


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

Reply via email to