Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Macintosh Toolbox Essentials /
Chapter 3 - Menu Manager / Menu Manager Reference
Menu Manager Routines


Adding and Deleting Menu Items

You can add the names of all resources of a specified type to a menu using the InsertResMenu or AppendResMenu procedure. You can add menu items that you define to a menu using the AppendMenu or InsertMenuItem procedure. You can also delete menu items using the DeleteMenuItem procedure. In most cases you should
not insert or delete individual menu items from an already existing menu unless the user expects a menu (such as a list of currently open documents) to change.

If you add menu items using the AppendMenu or InsertMenuItem procedure, you should define in resources the text and other characteristics of the menu items that you add. This makes your application easier to localize for other regions.


Subtopics
AppendMenu
InsertMenuItem
DeleteMenuItem
AppendResMenu
InsertResMenu

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996