RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.DefaultHandler Method

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

Pascal
procedure DefaultHandler(var Msg); override;
C++
virtual __fastcall DefaultHandler( Msg);

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 to true, DefaultHandler displays the popup menu.  

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

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!