Hi DuVall,

Thanks for the response! My event loop is the same way as the one is
working. I even make a new project from OS 3.5 stationery then add a field
to the main menu and a edit menu with those shortcut key. It is strange that
when i select some text in the field and do a shortcut C, the toolbar status
shows a copy command. But when I want to do a paste then, there is not paste
icon on the toolbar which means there is no text was copied before. Do i
need to do any extra thing after I have a edit menu plus some shortcut keys
to handle the cut/copy/paste/keyboard command in the a field?

Anyway, thanks a again for your kindly response!

Regards,

Yan


> -----Original Message-----
> From: DuVall Egle [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 10, 2001 12:40 PM
> To: Palm Developer Forum
> Subject: Re: Shortcut in field not work
> 
> 
> 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/
> 

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to