Thanks Ben and Chin, Sorry for not mentioning that I am using Treo600! I didn't know that different devices handle events differently.
Ben, can u please help me to find more info about the "vchrRocker key presses" events. If I need to include some header file and stuff! Please reply, Thanks once again. Keyur. -----Original Message----- From: Ben Combee [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 4:36 PM To: Palm Developer Forum Subject: RE: Center key event! At 03:16 PM 10/14/2004, you wrote: >Hi Chin, > >It is still not working for me! > >Following is what I am doing. And every time it prints "U r in!" message no >matter what key of the keyboard I press. You don't have that alert guarded using an "else" clause, so the dialog would be shown even if you did see one of the other keys. On what device are you testing? The PalmOne navigation macros don't apply on the Treo 600 which uses the PalmSource scheme (vchrRocker key presses). >case keyDownEvent: > > if (NavSelectPressed(eventP)) > { > FrmCustomAlert(ErrorAlert,"U did it!", NULL, NULL); > } > if (NavDirectionPressed(eventP, Down)) > { > FrmCustomAlert(ErrorAlert,"Humm..!", NULL, NULL); > } > > FrmCustomAlert(ErrorAlert,"U r in!", NULL, NULL); > break; > >Do I need to do any additional thig to make this work? >I really don't know where I am making mistake. -- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Fourm Archives: http://news.palmos.com/read/all_forums/ -- 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/
