Well, if your program is structured like mine (which is structured like most
example
programs), then there is a main EventLoop which when it gets an event,
calls SysHandleEvent(), then MenuHandleEvent(), then AppHandleEvent(), then
finally FrmDispatchEvent()
In AppHandleEvent() I have the code which calls FrmSetEventHandler() in
response to FrmLoadEvents. In the code you have posted, you are calling
none of these other event handlers. And so if your code is like mine, you
are never calling AppHandleEvent() and thus FrmSetEventHandler() never gets
called.
Try putting a breakpoint at the point you *think* FrmSetEventHandler() is
getting called...then you can see if it really gets called or not...
Brandon
----- Original Message -----
From: Mike Davis <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Friday, April 21, 2000 10:21 PM
Subject: Re: Why Event Not Processed
> > > This is pretty non-responsive to the question. I know how event
> > > processing works. I have event handlers for this form. I have a
> > > normal event processing loop.
> >
> > It's not always clear what is or is not obvious. Based on your
> > description, I don't see why it's not working. I'd use the debugger to
> > see whether you're actually getting a frmOpenEvent for the form you're
> > popping up and if so, that it is indeed being passed into
> > FrmDispatchEvent. I'd also verify that you're calling
> > FrmSetEventHandler for this form (again, using the debugger). Beyond
> > that, I don't know.
>
> I have already verified that I am not getting the frmOpenEvent. I
> also have the following set for my event handler for this form:
> case frmGraph:
> FrmSetEventHandler(form, (FormEventHandlerPtr) frmMyFormH);
> break;
>
> This is set in the event loop as it should be. That is what is so
> strange about this. The form will pop up, as expected, if I issue a
> FrmPopupForm(frmMyForm) outside of the loop in question. Only when
> inside the loop where it depends on the CheckEscape() does it fail to
> open properly. Somehow I am blocking the event from being processed.
>
> >
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
> > please see http://www.palm.com/devzone/mailinglists.html
> >
>
>
> --
> -----------------------------------------------------------------
> Discussion Group: http://www.halcyon.com/ipscone/wwwboard/
>
> Protect your constitutional rights. Your favorite one may be next!
> -----------------------------------------------------------------
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html