RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomActiveForm.PixelsPerInch Property

Represents the proportion of the font on the system on which the form was designed.

Pascal
property PixelsPerInch: Integer;
C++
__property int PixelsPerInch;

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!