Re: Custom Event

2008-05-29 Thread Dave Lippincott
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 EvtAddUniqueEve

Re: Custom Event

2008-05-29 Thread HowY
Thank-you Stuart I was trying to add my own custom event to event.h to no avail. You're help on the matter got me runnin' in a heartbeat. Sorry I didn't thank-you sooner but a HUGE thank-you is in order! You-Da-Man! -- > For information on using the Palm Developer Forums, or to unsubscribe, > p

Re: Custom event

2005-03-05 Thread Paul Nevai
There is one major defect with custom events. Two or more applications and/or OS extensions may use the same custom event number. With virtual chars, companies, I guess with mucho money, could reserve certain virtual chars to themselves. To be honest, I use dozens of custom events and I have no

Re: Custom event

2005-03-04 Thread Frank LaRosa
Thanks. You're right of course. Not sure how I missed that. Guess that's what I get for working in the middle of the night! Frank --- Ben Combee <[EMAIL PROTECTED]> wrote: > There are custom events in Palm OS. Look in Event.h for > firstUserEvent, > lastUserEvent, and the generic union member i

Re: Custom event

2005-03-04 Thread Ben Combee
At 02:33 AM 3/4/2005, you wrote: I have a situation where I want a form to send an event to another form when it closes and ask it to perform an application-specific function. I was suprised that there is not an event type for app-specific events or events carrying app-specific pointers or data. We

Re: Custom event

2005-03-04 Thread Neil Whitworth
You can create your own custom events. The following are defined in Event.h firstUserEvent = 0x6000, lastUserEvent = 0x7FFF In the data filed of an EventType there is a generic field. This is defined in SysEvent.h as :- struct _GenericEventType { UInt16 datum[8];

Re: Custom event loop in POL

2004-05-05 Thread Mark Chauvin
Thanks... I'll give this a try -Mark --- Arrow <[EMAIL PROTECTED]> wrote: > > "Dave Lippincott" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Does POL support the serial port callback? > Instead of a tight loop, > process > > the data as it arrives. > > > > if you mean the S

Re: Custom event loop in POL

2004-05-05 Thread Arrow
"Dave Lippincott" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does POL support the serial port callback? Instead of a tight loop, process > the data as it arrives. > if you mean the SetWakeupHandler call then yes, i've done it. ...you can do something like: class CComPort : pu

Re: Custom event loop in POL

2004-05-05 Thread Dave Lippincott
Does POL support the serial port callback? Instead of a tight loop, process the data as it arrives. - Original Message - From: "Mark Chauvin" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Wednesday, May 05, 2004 9:17 AM Subject: Custom event loop in POL > I h

RE: Custom Event??

2001-07-22 Thread Richard Burmeister
> From: Joe Siebenmann > ... > If the results are right I'll need to do a FrmGotoForm(YYYForm). > The problem is if I do this in the wrong place, I could end-up > eating some possibly important system event. Is there a way > to use a "custom event" and put it on the event queue, and then > ... I

Re: Custom Event

2000-06-27 Thread HowY
Thank-you Stuart I was trying to add my own custom event to event.h to no avail. You're help on the matter got me runnin' in a heartbeat. Sorry I didn't thank-you sooner but a HUGE thank-you is in order! You-Da-Man! -- > For information on using the Palm Developer Forums, or to unsubscribe, >

Re: Custom Event

2000-06-22 Thread Dave Lippincott
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 EvtAddUniqueEv

RE: Custom Event

2000-06-22 Thread Nesse, Rustin
You could catch the keydown event sent by the power button (keyBitPower). -Rus >-Original Message- >From: HowY [mailto:[EMAIL PROTECTED]] >Sent: Thursday, June 22, 2000 9:12 AM >To: Palm Developer Forum >Subject: Custom Event > > >Hi > >Im trying to generate a power on event to test >asi

RE: Custom Event

2000-06-22 Thread Stuart Nicholson
Have a look in Core/UI/Event.h. There's a constant called 'firstUserEvent'. I typically do something like: #define AppCustomEvent1 ( firstUserEvent ) #define AppCustomEvent2 ( firstUserEvent + 1 ) etc. (Although I note the actual value for 'firstUserEvent' has changed from 0x7FFF to 0x6000 in Pa