[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TGridColumn.FixDesignFontsPPI

Corrects the design-time PPI for the column title.

Declaration

Source position: grids.pas line 599

public procedure TGridColumn.FixDesignFontsPPI(

  const ADesignTimePPI: Integer

); virtual;

Description

FixDesignFontsPPI is a procedure used to correct the design-time Pixels Per Inch setting for the component. Pixels Per Inch for Fonts is not saved in LFM files, and the design-time setting may differ from the run-time setting on a target machine. This adversely affects font scaling.

FixDesignFontsPPI calls the DoFixDesignFontPPI method in the Grid control to adjust the font PPI to the value specified in ADesignTimePPI.

See also

TGridColumn.Font

  

The Font for the column.

TGridColumn.Grid

  

The Grid to which this column belongs.

TControl.DoFixDesignFontPPI

  

Applies the design-time PPI and resizes the specified control font.