Skip to main content

TdxScaleFactor Class

Stores the UI scaling factor.

Declaration

TdxScaleFactor = class(
    TObject
)

Remarks

The numerator and denominator values used to calculate the pixel dimensions of DPI-aware forms and visual components represent the UI scaling factor. The numerator value multiplies all linear dimensions of the geometric shapes the visual components display and then divide them by the denominator value.

The TdxScaleFactor extends its ancestor with the following members that allow you to:

  • Identify if the scaling factor corresponds to the unscaled UI (Assigned).

  • Identify the scaling factor’s numerator and denominator values (Numerator and Denominator).

  • Apply the normal or reversed scaling factor to a specific value (Apply and Revert).

  • Change the stored numerator and denominator to specific values (Assign).

  • Multiply the stored numerator and denominator by specific values (Change).

  • Compare two scaling factor values (Equals).

  • Manage the list of procedures automatically called in response to the scaling factor changes (ListenerAdd and ListenerRemove).

All DevExpress DPI-aware forms (including TdxForm, TdxCustomForm, and their descendants) and DevExpress VCL controls use a TdxScaleFactor object.

Inheritance

TObject
TdxScaleFactor
See Also