Sign in Join
FPDoc Onlineexperiment

TFrame.DesignTimePPI property

Member of TFramepublishedIn unit Forms

Design-time Pixels Per Inch for the designer surface.

Declaration

pascal
property DesignTimePPI:;

Description

DesignTimePPI is an Integer property that contains the display density (or Pixels Per Inch) used on the designer surface. The default value for the property is 96.

The property value is normally set when the component is loaded using the LCL streaming mechanism. It can be assigned at design-time to the value in ADesignTimePPI only when the new value matches the display density for the current Screen where the designer surface is used. The value can be changed at run-time, but the programmer must ensure that the value is valid for the intended usage.

An EInvalidOperation exception is raised if an invalid value is specified at design-time.

When scaling is enabled in the Application, the value in DesignTimePPI is assigned to the Font for the designer surface.

Use PixelsPerInch to access the run-time display density for the designer surface.

This description is the one of Forms.TCustomDesignControl.DesignTimePPI.

See also

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