TdxCustomForm Class
The base class for DPI-aware DevExpress application forms and dialogs.
Declaration
TdxCustomForm = class abstract(TCustomForm, IdxScaleFactor)
Remarks
This class is designed to substitute the TCustomForm class in DPI-aware applications. An instance of the form or dialog window class derived from TdxCustomForm
, automatically updates its scaling factor and applies it to all DevExpress controls when your application accepts the WM_DPICHANGED
system message. For instance, TdxCustomForm
is the base class for alert and popup windows.
This class extends its ancestor with the following members that allow you to:
Disable or enable the form’s DPI awareness functionality (Scaled).
Scale the form and its DPI-aware components (ScaleForPPI).
Apply the form scaling factor to the custom painted geometry (ScaleFactor).
Respond to form DPI changes (ScaleFactorChanged and UpdateImageLists).
Refer to the How to Create a Per-Monitor DPI-Aware Application topic for detailed information on adding DPI awareness to your VCL application.