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

TCustomDesignControl.DesignTimePPI

Design-time Pixels Per Inch for the designer surface.

Declaration

Source position: forms.pp line 310

public property TCustomDesignControl.DesignTimePPI : Integer
  read FDesignTimePPI
  write SetDesignTimePPI
  stored DesignTimePPIIsStored;

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.

See also

TCustomDesignControl.PixelsPerInch

  

Run-time Pixels Per Inch for the designer surface.

TCustomDesignControl.Scaled

  

Indicates if the design surface is scaled to reflect changes in display density (Pixels Per Inch).

TApplication.Scaled

  

Indicates if forms and controls in the application can be scaled to different display densities (Pixels per Inch).

TControl.Font

  

The font to be used for text display in this control.


Version 3.2 Generated 2024-02-25 Home