Vcl.Forms.TCustomForm.PixelsPerInch
Delphi
property PixelsPerInch: Integer read GetPixelsPerInch write SetPixelsPerInch stored False;
C++
__property int PixelsPerInch = {read=GetPixelsPerInch, write=SetPixelsPerInch, stored=false, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | protected | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TCustomForm |
Description
Represents the proportion of the font on the system on which the form was designed.
Use PixelsPerInch at runtime to change how the form is scaled to the current screen resolution. If PixelsPerInch is changed from its default value, the form will not have the same proportion on every screen resolution.
At design time, PixelsPerInch is set automatically when the form is saved. Changes to PixelsPerInch made in the Object Inspector only affect the form at runtime.
The form's Scaled property must be true for PixelsPerInch to have an effect.