I asked this before but did not get an answer and I have still not
been able to figure this out.
I have a loop that executes in my program. I also make a function
call to the function shown below, that is made to see if an Escape
button has been tapped. ThisThe Escape button essentially breaks me
out of the loop. This works ok. But one of the other things that is
done, sometimes, in the loop that I am talking about, is to execute a
function that calls FrmPopupForm(frmNewForm).
My problem is that this form is never displayed. I have verified
that the FrmPopupForm(frmNewForm) is being executed. But no call to
my current form handler or the frmNewForm handler is ever made.
Why does the function below, not allow the form to be displayed? I
would suspect that calling FrmPopupForm(frmNewForm) would generate an
event that would be caught by the CheckEscape() function and that
event would be passed to the appropriate form handler, which is set
for the form in question.
void CheckEscape(void) {
EventType event;
UInt16 err;
EvtGetEvent(&event, 0);
if(event.data.ctlEnter.controlID == btnESC) {
progPaused = TRUE;
}
else {
FrmDispatchEvent(&event);
}
}
--
-----------------------------------------------------------------
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