I define my "Settings" menu items using a resource file, "Menus.r,"
something like this:

resource 'MENU' (MainOptionsMenu) {
 SettingsBase,
 "Settings",
 {
  "General Preferences", "F";
  "Custom Shortcuts", "M";
  "Help", "H";
  "About MyApp", NONE;
 }
};

For the full release, I want all of the menu Items, but for another,
partial-release of the product, I want to shut off the "Custom Shortcuts"
item.  I naively tried to insert a directive, but CW balked at that (I'm not
sure what the role of the .r file is, so I'm not surprised).  So, now I'm
thinking that it should be removed at runtime.  An alternative would be that
I leave it out of "Menus.r" and add it dynamically in the full release.

Is this the best way to go about this?  It so, what function call(s) would
do this?

Thanks!
Rich


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

Reply via email to