TdxForm Class
The base class for DPI-aware DevExpress application forms.
Declaration
TdxForm = class(
TForm,
IdxScaleFactor
)
Remarks
This class is designed to substitute the TForm class as a form ancestor in DPI-aware applications. An instance of the form class derived from TdxForm
(including TdxRibbonForm TdxSkinForm and other forms implemented as a part of DevExpress VCL products), automatically updates its scaling factor and applies it to all DevExpress controls when your application accepts the WM_DPICHANGED
system message.
The TdxForm
class extends its ancestor with members that allow you to:
Disable or enable the DPI awareness functionality (Scaled).
Set the form’s client height and width, in pixels (ClientHeight and ClientWidth).
Specify the “base” DPI value for calculating the scaling factor (PixelsPerInch).
Scale the form and its components (ScaleForPPI, ScaleBy, and ChangeScale).
Apply the form scaling factor to the custom paint geometry (ScaleFactor).
Respond to form DPI changes (ScaleFactorChanged).
Refer to the How to Create a Per-Monitor DPI-Aware Application topic for detailed information on adding DPI awareness to your VCL application.