Sign in Join
FPDoc Onlineexperiment

TMenuItem.Remove procedure

Member of TMenuItempublicIn unit Menus

Removes the specified menu item from its Parent.

Declaration

pascal
procedure Remove(Item: TMenuItem)

Arguments

Item

Menu item removed in the method.

Description

Remove is a method used to locate and delete the menu item specified in Item. Remove call IndexOf to get the position in Items where the menu item is stored. An EMenuError exception is raised if the menu item in Item is not found in the Items property.

Remove calls the Delete method to free the handle and the menu item instance at the required position.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.