Hi,

>> What event are you talking about dispatching?  How have you
>> "intercepted" the controls on the form?

actually I have list control over table one (that I've meant as
"intercepted"). List is popping up from the app code. My question is if
suppose keydown event is being dispatched, which control will get it first?

Alex

-----Original Message-----
From: Joe Malone [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 22, 2002 23:48
To: Palm Developer Forum
Subject: Re: Form HandleEvent


--- Alex Gusev <[EMAIL PROTECTED]> wrote:
> 
> when I have several intercepted controls in form, what's the order of
> dispatching the event? I.e. which control will get the event first?
> 

What event are you talking about dispatching?  How have you
"intercepted" the controls on the form?

If you write a form handler, it receives a pointer to an event as its
only parameter.  You dereference that pointer to see what event was
received.  If, for example, the event is a ctlSelectEvent event, then
you examine eventP->data.ctlEnter.controlID to see which control (e.g.,
which button) was selected.  If you want your app to do something to
handle that button tap, you do it, then return true so the event is not
passed on to FrmHandleEvent().

Have you replaced FrmHandleEvent() in a hack?  If so, you should get
the OS source code to see exactly what it does.  Otherwise, you might
alter some behavior and cause unintended consequences.  However,
FrmHandleEvent() also handles only one event at a time.  It has two
parameters: a pointer to the form, and an pointer to the event.

So, I think you may have to reword your question.


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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

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

Reply via email to