Skip to main content
A newer version of this page is available. .

TdxCustomForm.ScaleForPPI(Integer,PRect) Method

Scales the form according to the specified DPI value.

Declaration

procedure ScaleForPPI(ATargetDPI: Integer; AWindowRect: PRect); reintroduce; overload; virtual;

Parameters

Name Type
ATargetDPI Integer
AWindowRect PRect

Remarks

Call this procedure to scale the form and its components according to the ATargetDPI parameter value. Calling the ScaleForPPI procedure has no effect if the internally stored DPI value matches ATargetDPI.

See Also