DesignIntf.ISelectionEditor.PrepareItem

From RAD Studio API Documentation
Jump to: navigation, search

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 ISelectionEditor

Description

PrepareItem is called for each verb while constructing the context menu.

The AItem parameter is the menu item used to represent the verb. The component editor can customize the menu item, including adding subitems. If you want a specific item to be hidden, set its Visible property to False, rather than freeing it.