Sign in Join
FPDoc Onlineexperiment

TGridColumns.FontChanged procedure

Member of TGridColumnsprotectedIn unit Grids

Performs actions needed when the Font for the grid control is changed.

Declaration

pascal
procedure FontChanged

Description

FontChanged is an overridden method used to perform actions needed when the Font for the grid control has been changed.

FontChanged ensures that the font used for the Canvas is updated to use the value in Font when csCustomPaint is included in the ControlState flags.

Otherwise, the inherited method is called to signal the change in the Font property. The FontChanged method in the Columns collection is also called (when enabled). The new Font is assigned to TitleFont and TitleFontIsDefault is reset to True.

See also

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