Skip to main content

TdxCustomForm.ScaleBy(Integer,Integer) Method

Changes the form’s scale factor.

Declaration

procedure ScaleBy(M: Integer; D: Integer);

Parameters

Name Type Description
M Integer

The new scale factor multiplier that updates the ScaleFactor.Numerator property.

D Integer

The new scale factor denominator that updates the ScaleFactor.Denominator property.

Remarks

ScaleBy and ScaleForPPI procedures are called automatically in a DPI-aware application every time it accepts the WM_DPICHANGED[1] system message.

Footnotes
  1. An application accepts the WM_DPICHANGED system message only if the application manifest includes the permonitor or permonitorv2 item.

See Also