Important: The information in this document is obsolete and should not be used for new development.
DeleteMenuItem
Use theDeleteMenuItem
procedure to delete an item from a menu. TheDeleteMenuItem
procedure is also available as theDelMenuItem
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
TheDeleteMenuItem
procedure deletes a specified menu item from a menu. TheDeleteMenuItem
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.