Yan,
I ran into a similar problem in my app. And I found that the order of the
calls in the event loop were causing the problem. I had rearranged the
calls to uniquely handle some key down events but it messed up the shortcut
menu stuff. I am not sure if this is your problem but I will give you the
non-working code and working code and you can determine if this is the
cause of your problem.
Here is the code that doesn't work (causes the problem you are seeing).
static void AppEventLoop(void)
{
UInt16 error;
EventType event;
do
{
if ( ! AppHandleEvent(&event))
if ( ! MenuHandleEvent(0, &event, &error))
if (! SysHandleEvent(&event))
FrmDispatchEvent(&event);
} while (event.eType != appStopEvent);
}
And here is the code that works.
static void AppEventLoop(void)
{
UInt16 error;
EventType event;
do
{
if ( ! SysHandleEvent(&event))
if ( ! MenuHandleEvent(0, &event, &error))
if (! AppHandleEvent(&event))
FrmDispatchEvent(&event);
} while (event.eType != appStopEvent);
}
DuVall Egle
PeopleNet Communications Corp.
At 11:12 AM 4/10/01 -0700, you wrote:
>Hi,
>
>I have to post this again since i really don't know why the graffiti
>cut/paste shortcut doesn't work in my edit field. I have a field and edit
>menu which can display those shortcut key like graffiti command keystroke X,
>graffiti command keystrok C, P.. I'm running Palm OS 3.5. When I tap the
>graffiti command keystroke, the command toolbar shows correctly and those
>cut/copy/paste buttons work fine in the edit field. But when I give the
>shortcut keys at the graffiti area, they don't work in the field. For
>example, when i select some text in the field then give a graffiti command
>keystroke + C, a charactor c will replace my selected charators! Am I
>missing something here?
>
>Regards,
>
>Yan
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
>please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/