Sign in Join
FPDoc Onlineexperiment

TCustomDBGrid.WndProc procedure

Member of TCustomDBGridprotectedIn unit DBGrids

Extends the message processing loop for the database grid control.

Declaration

pascal
procedure WndProc(var TheMessage: TLMessage); override

Arguments

TheMessage

Window message examined and handled in the method.

Description

WndProc is an overridden method in TCustomDBGrid. It ensures that LM_SETFOCUS messages are handled properly when gsUpdatingData has been included in the GridStatus property. This includes using the LCL interface to give focus to the active Editor control, and selecting its content.

WndProc calls the inherited method prior to exit.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.