Sign in Join
FPDoc Onlineexperiment

TCustomGrid.Click procedure

Member of TCustomGridprotectedIn unit Grids

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

Declaration

pascal
procedure 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

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