Important: The information in this document is obsolete and should not be used for new development.
DeleteMenuItem
Use theDeleteMenuItemprocedure to delete an item from a menu. TheDeleteMenuItemprocedure is also available as theDelMenuItemprocedure.
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,
DeleteMenuItemdoes not delete any item from the menu.DESCRIPTION
TheDeleteMenuItemprocedure deletes a specified menu item from a menu. TheDeleteMenuItemprocedure 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.