TcxGridPopupMenu.UnregisterPopupMenu(TComponent,TcxCustomGridViewClass,TcxGridViewHitTypes) Method
Un-registers a custom menu.
Declaration
procedure UnregisterPopupMenu(const AMenu: TComponent; AGridViewClass: TcxCustomGridViewClass; AHitTypes: TcxGridViewHitTypes = []); overload; virtual;
Parameters
Name | Type |
---|---|
AMenu | TComponent |
AGridViewClass | TcxCustomGridViewClass |
AHitTypes | TcxGridViewHitTypes |
Remarks
The TcxGridPopupMenu component allows you to manage custom menus. To add or remove a custom menu at design time, use the PopupMenus collection editor. At runtime, you can call the RegisterPopupMenu and UnregisterPopupMenu methods and pass a custom menu to be added/removed as the AMenu parameter.
The AHitTypes parameter specifies the grid View elements from which the menu is removed.
The AGridView parameter determines the grid View from which the menu is removed. The overloaded method allows you to remove the menu from all Views of a certain type. To accomplish this, pass the View type as the AViewClass parameter.
See Also