> "Patrick Ouellet" <[EMAIL PROTECTED]> wrote in
> message news:62099@palm-dev-forum...

> > These function are for handling the shortcut
> > what I want is to enable
> > /c /p & /x
> > shortcut.

From: "Ben Combee" <[EMAIL PROTECTED]>
> These are enabled based on the existance of a menu implementing those
> commands.  If you have an Edit menu with the commands and shortcuts, you
> should be able to use them in your application.

Just making them an "Edit" menu is not enough.. From CodeWarrior, make the
menu id 10000 .. your menu options will be something like this in the
resource.h file:

#define EditOptionsMenu                           10000
#define EditOptionsUndo                           10000 //  Command Key: U
#define EditOptionsCut                            10001 //  Command Key: X
#define EditOptionsCopy                           10002 //  Command Key: C
#define EditOptionsPaste                          10003 //  Command Key: P
#define EditOptionsSelectAll                      10004 //  Command Key: S
#define EditOptionsKeyboard                       10006 //  Command Key: K
#define EditOptionsGraffitiHelp                   10007 //  Command Key: G

Then, you have to let the system handle these items (because they may modify
their behavior in the future and there was some sort of note about how they
might be able to add things to your menu if it is numbered 10000) by
returning a "not handled" to a menu event.

Good luck!



-- 
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