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


DeleteMenuItem

Use the DeleteMenuItem procedure to delete an item from a menu. The DeleteMenuItem procedure is also available as the DelMenuItem procedure.

PROCEDURE DeleteMenuItem (theMenu: MenuHandle; item: Integer); 
theMenu
A handle to the menu record of the menu from which you want to delete the menu item.
item
The item number of the menu item to delete. If you specify 0 or a number greater than the last item in the menu, DeleteMenuItem does not delete any item from the menu.
DESCRIPTION
The DeleteMenuItem procedure deletes a specified menu item from a menu. The DeleteMenuItem procedure also deletes the item's menu item entry from your application's menu color information table (if an entry exists). You should not delete items from an existing menu unless the user expects the menu (such as a menu that lists open documents) to change.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996