RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMenuItem.Remove Method

Removes a menu item from the Items property array

Pascal
procedure Remove(Item: TMenuItem);
C++
__fastcall Remove(TMenuItem Item);

Call Remove to remove a menu item and all its submenus from a menu. The Item parameter is the item to be removed. If Item is not a menu item in the Items array, Remove raises an exception. 

Remove does not free the item's memory. To remove an item from the menu and free its memory, call the Free method in the item you want to remove. 

To temporarily hide a menu item, without deleting it, use the Visible property. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!