TCustomGrid.FontChanged procedure
Performs actions needed when the font for the control is changed.
Declaration
procedure FontChanged(Sender: TObject); overrideArguments
Sender | Object for the event notification. |
Description
FontChanged is an overridden method used to perform actions needed
when the
Font for the control has been changed.
FontChanged ensures that the internal default heights for rows and columns
are reset to 0 (zero). This causes the default column and row
heights to be recalculated when the DoAutoAdjustLayout method is
called.
When csCustomPaint is included in ControlState, the
Font is assigned to the Canvas for the control.
Otherwise, the FontChanged method is called for the ancestor class and the
Columns collection (when Enabled). If the default title font is
used for the control, the Font is assigned to TitleFont property.
FontChanged is assigned as the OnChange event handler for the
Font property in the constructor for the class instance.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
