Sign in Join
FPDoc Onlineexperiment

THdrEvent procedure type

In unit Grids

Specifies an event handler signalled when an event occurs in a fixed header cell.

Declaration

pascal
THdrEvent = procedure(Sender: TObject; IsColumn: Boolean; 
 Index: Integer) of object

Arguments

Sender

Control generating the event notification.

IsColumnTrue if the event applies to a column header; False when a row header is affected.
Index

Index position for the row or column in the event notification.

Description

THdrEvent specifies an event handler signalled when an event occurs in a column header. Arguments passed to the event handler indicate whether the action occurred for a column or a row header, and the index position for the row or column.

THdrEvent is the type used to implement the OnHeaderClick and OnHeaderSized properties in TCustomDrawGrid. Applications must implement an object procedure using the event signature to respond to the event notification.

See also

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