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/

Reply via email to