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

TCustomGrid.Click

Performs actions needed when a mouse click occurs in the grid control.

Declaration

Source position: grids.pas line 1017

protected procedure TCustomGrid.Click; override;

Description

Click is an overridden method used to perform actions needed when a mouse click occurs in the control. The grid control provides an internal flag to suppress mouse click handling when the event occurs in a "hot zone" (fixed header cells for columns or rows). Click checks the value in the internal flag, and calls the inherited method when the click occurs in the "normal" data cells for the grid.

Click is called from methods like SetCol, SetRow, and SetColRow to emulate a mouse click when values are assigned to the Col and/or Row properties.

See also

TCustomGrid.Col

  

Column index for the selected grid cell.

TCustomGrid.Row

  

Row number for the selected grid cell.

TCustomGrid.ColRow

  

Provides access to current column and row numbers as a TPoint instance.

TControl.Click

  

Signals OnClick and/or executes the ActionLink when the control has been clicked.


Version 4.0 Generated 2025-05-03 Home