[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'DBGrids' (#lcl)

TCustomDBGrid.MouseDown

MouseDown handles mouse down messages in the control and signals the OnMouseDown event handler

Declaration

Source position: dbgrids.pas line 496

protected procedure TCustomDBGrid.MouseDown(

  Button: TMouseButton;

  Shift: TShiftState;

  X: Integer;

  Y: Integer

); override;

Description

MouseDown handles mouse button clicks (when cllowed) in the control. MouseDown ensures that the specified Button and State are correctly applied to the control similar to the processing provided in KeyDown method. MouseDown translates screen coordinates into the row and column numbers used in the control and performs actions needed for focus selection editing or navigation.

MouseDown signals the OnMouseDown event handler when assigned in the class instance.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.