DesignIntf.ICustomModule.PrepareItem
[–] Properties | |
---|---|
Type: procedure function
| |
Visibility: public | |
Source: DesignIntf.pas DesignIntf.hpp
| |
Unit: DesignIntf | |
Parent: ICustomModule |
Delphi
procedure PrepareItem(Index: Integer; const AItem: IMenuItem);
C++
virtual void __fastcall PrepareItem(int Index, const Designmenus::_di_IMenuItem AItem) = 0 ;
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.