At 08:33 AM 4/13/2004, you wrote:
The documentation (both the palm os companion an UI Guide) mention a
"standard edit menu" are there API calls implementing this menu or is each
application developper supposed to reimplement his own?

If your form has a menubar that consists of just the "Edit" menu, you can specify menu ID 10000 at form creation time.


If your form has a menubar with several menus, you should specify your Edit menu like this, using PilRC notation:

PULLDOWN "Edit"
BEGIN
    MENUITEM "Undo" ID 10000 "U"
    MENUITEM "Cut" ID 10001 "X"
    MENUITEM "Copy" ID 10002 "C"
    MENUITEM "Paste" ID 10003 "U"
    MENUITEM "Select All" ID 10004 "S"
    MENUITEM "-" ID 10005
    MENUITEM "Keyboard" ID 10006 "K"
    MENUITEM "Grafitti Help" ID 10007 "G"
END

If you're using Constructor, just create an Edit menu with ID 10000, and the IDs for the items will be provided for you.

The advantages of using this include:

1) System will provide handlers for all of these commands for standard fields.
2) System extensions that add commands to the Edit menu (like the Japanese versions of Palm OS) will work with this.


-- Ben Combee, senior DTS engineer, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/



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

Reply via email to