> > 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?
>
> Define your menus in Rez files instead of Constructor. This lets you assign
> the desired IDs and to have the same Edit menu in multiple menu bars.
> (Actually it only lets you assign a menu's first item's ID, not each item
> separately, but this is sufficient to do what you're asking for.)
someone requested this a while back, and i will put it in the next
release of pilrc :))
---
PULLDOWN "Edit"
BEGIN
MENUITEM "Undo" ID 10000 "U"
MENUITEM "Cut" ID 10001 "X"
MENUITEM "Copy" ID 10002 "C"
MENUITEM "Paste" ID 10003 "P"
MENUITEM "Select All" ID 10004 "S"
MENUITEM "-" ID 10005
MENUITEM "Keyboard" ID 10006 "K"
MENUITEM "Graffiti Help" ID 10007 "G"
END
---
those are the specific OS menu ID's that are used by the palm os.
PilRC will not accept any ID's that are > 9999 :P but it will soon.
cheers.
az.
--
Aaron Ardiri
Java Certified Programmer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 656 1143 A/H: +46 8 668 78 72
if you enjoy it, then it aint work :) - rule #106 of life
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/