That was it! Thanks a million Jeff! Now I can get on with my life. regards,
Dave Mottorn -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jeff Ishaq Sent: Wednesday, July 30, 2003 10:25 AM To: Palm Developer Forum Subject: RE: Very Persistant Problem > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Dave Mottorn > Sent: Wednesday, July 30, 2003 5:20 AM > To: Palm Developer Forum > Subject: Very Persistant Problem > > The form > handler gets events like form open, form close, pen up, pen > down, but none that are initiated by the two button controls. Do you see the buttons on the form? If not, make sure the 'usable' flag is set in the resource. It sounds like in the grand scheme of things, you are accidentally returning 'true' from your ApplicationHandleEvent() function in the event chain (check your 'break' statements). Alternatively, your form's HandleEvent() function might be returning 'true' for handled, when it should in fact be returning false. if ( !SysHandleEvent( pEvt ) ) if ( !MenuHandleEvent( pEvt ) ) if ( !ApplicationHandleEvent( pEvt ) ) FrmDispatchEvent( pEvt ); Here, only when the penDown+penUp events pass into FrmDispatchEvent() will they be converted into a ctlSelectEvent. This happens by the penDown being passed into FrmHandleEvent() and then CtlHandleEvent(), where the OS will enqueue a ctlSelectEvent into the loop if the control has been tapped on. You should tap on the button, and then trace the penDown event and make sure it's making it all the way to FrmDispatchEvent() -- I suspect it is not. -Jeff Ishaq -- 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/
