--- 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/

Reply via email to