DesignIntf.ICustomModule.PrepareItem
Delphi
procedure PrepareItem(Index: Integer; const AItem: IMenuItem);
C++
virtual void __fastcall PrepareItem(int Index, const Designmenus::_di_IMenuItem AItem) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | DesignIntf.pas DesignIntf.hpp |
DesignIntf | ICustomModule |
Description
Allows the module editor to modify menu items as they are added to the context menu.
PrepareItem is called for every verb when constructing the context menu. The module editor can customize the menu items, for example, by adding subitems.
Index represents the index of the verb and AItem is the corresponding menu item.
If you do not want that a particular menu item be shown in the menu, set its Visibility property to False, instead of freeing it.