Vcl.DBGrids.TCustomDBGrid.DefaultHandler

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DefaultHandler(var Msg); override;

C++

virtual void __fastcall DefaultHandler(void *Msg);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.DbGrids.pas
Vcl.DBGrids.hpp
Vcl.DBGrids TCustomDBGrid

Description

Displays the popup menu when a column is right-clicked.

DefaultHandler is the last method to receive Windows messages that are sent to the grid. After calling the inherited method and allowing it to process the message, DefaultHandler checks if the Msg parameter indicates the right mouse button was released over a column with a popup menu. If the column has a popup menu with its AutoPopup property set totrue, DefaultHandler displays the popup menu.

When overriding DefaultHandler, be sure to call the inherited method for all unhandled messages.

See Also