Sign in Join
FPDoc Onlineexperiment

TGridZone enumeration

In unit Grids

Enumerated type with values which represent the zones or areas on a grid control.

Declaration

pascal
TGridZone = (gzNormal,gzFixedCols,gzFixedRows,gzFixedCells,gzInvalid)

Description

TGridZone is an enumeration type with values representing zones in a grid control which are monitored to determine activity and subsequent changes in the control state. It represents the area on a grid where the mouse is located when a mouse move, mouse down, or mouse up event is handled for the control.

TGridZone is the type returned by TCustomGrid methods like:

  • CellToGridZone
  • MouseToGridZone
  • MouseToLogcell
  • CacheMouseDown

Values from TGridZone are stored in the TGridZoneSet type, and used to implement properties in TCustomGrid like:

  • HeaderHotZones
  • HeaderPushZones

The TGridZoneSet type is also passed as an argument to the Clean method in TCustomStringGrid.

See also

Values

gzNormalArea normally used for cell data (not fixed row or column headers).
gzFixedColsArea used for fixed column headers.
gzFixedRowsArea used for fixed row headers.
gzFixedCellsArea for fixed cells (where both the column and the row are fixed).
gzInvalidArea not valid for grid cells. Used when outbound (or out-of-bounds) events are enabled on a grid control.

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