If you look at the Palm OS tutorial chapter on the Cut/Edit/Paste menus,
they show you how to implement this yourself pretty easy.
Basically in your MenuCut case, you something like:
fldP = FldGetActiveField () // or whatever you do to get the current field
FldCut (fldP); // I think that is the name of the function.
There is one for Paste, and Copy as well.
SelectAll is easy to implement also.
I highly recommend looking at that chapter in the Tutorial.
Or better, yet, just look at the MemoPad.c source from the tutorial and
then cut&paste the code into your program.
Brandon
----- Original Message -----
From: Steve Achelis <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Tuesday, May 02, 2000 10:11 AM
Subject: System Menu IDs
> I'm trying to add cut/copy/paste commands to my app. In looking at the
> Address.mcp project, it looks like they set the ID's of their menu's to
the
> system values (e.g., the Copy command is set to 10002, which is
> sysEditMenuCopyCmd). They then let the system handle the menu event.
>
> However, the ID's of my menu items are automatically generated (i.e., the
> header file is created by the resource Constructor), so my menu's Copy
> command has an ID of 1203.
>
> Any ideas on how I can get my menu ID to be the same as the system's ID?
>
> Thanks in advance!
>
> Steve
>
>
>
> --
> 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/