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 s
ant system event. Is there
a way to use a "custom event" and put it on the event queue, and then test
for:
if ( event->eType == MyCustomEvent )
{
;; // Statements..
FrmGotoForm(YYYForm);
handled = true;
}
Right now I'm getting into a situation where I do a test at t
Hi,
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 use this kind of
thing all
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 s
c.data1 = someUsefulValue;
EvtAddEventToQueue( &customEvent );
Hope that helps?
Stuart Nicholson
Programmer
Firepad, Inc.
-Original Message-
From: HowY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 22, 2000 5:12 PM
To: Palm Developer Forum
Subject: Custom Event
Hi
Im trying to
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 gen
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 g
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,
> 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 pu
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];
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
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
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
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,
EvtAddUniqueEventToQueue(&newEvent,0,true);
- Original Message -
From: "HowY" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum"
Sent: Thursday, June 22, 2000 12:12 PM
Subject: Custom Event
> Hi
>
> Im trying to generate a power on event
I have a program that needs to constantly monitor the
serial port for data. My old version of the program,
written in C w/ PRC-tools, redifined the EventLoop
function, but now that I'm using POL and a derivation
of the CPalmApp object, what's the right way to do
this? Should I have a function tha
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 have a program that needs to constantly monitor the
t; calls...works with
> all OSes plus i needed to support bluetooth which is
> easy then (you cannot
> use
> SetWakeupHandler for bluetooth)
>
> > - Original Message -
> > From: "Mark Chauvin" <[EMAIL PROTECTED]>
> > To: "Palm Developer Forum
Hi all,
New member with my first question.
Can someone explain how to setup a custom event loop? I think I understand the
general concepts, create a que, create functions for pointer initialization, adding
events, consuming events, and cleaning up. It's the details i am a bit fuz
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
There are lots of details too numerous to mention that need to be handled. Best advice
I can give you is to register as a developer with PalmSource, then download the OS
source code and look at some examples, e.g. LstPopupList in file List.c.
Dave
--
For information on using the Palm Developer
I have a interrupt driven serial input routine and want
to have that place a custom event in the event queue.
Has anybody timed how long in milliseconds the delay
would be before my routine in a form handler would
recieve the event?
Does the event go on the queue and immedently
go to the form
In article <83202@palm-dev-forum>, [EMAIL PROTECTED] says...
>
> I have a interrupt driven serial input routine and want
> to have that place a custom event in the event queue.
>
> Has anybody timed how long in milliseconds the delay
> would be before my routine
t;Ben Combee" <[EMAIL PROTECTED]> wrote in message
news:83207@palm-dev-forum...
>
> In article <83202@palm-dev-forum>, [EMAIL PROTECTED] says...
> >
> > I have a interrupt driven serial input routine and want
> > to have that place a custom event in the even
In article <83209@palm-dev-forum>, [EMAIL PROTECTED] says...
>
> I was looking at the api and it looks like I could use a
> AddEventToQueue call to place an event in into the
> queue.
Look at the description of EvtEnqueueKey -- this is the only event
handling call that disables interrupts while
25 matches
Mail list logo