Previous Topic

Next Topic

Inhoudsopgave

Book Index

ResizeToScale Method

FunktionMethod ResizeToScale

Description

Resizes the form according to the current Windows screen scaling setting.

Remarks

This method is common to all TForm controls.

Details

Use ResizeToScale to scale the form so that the Width and Height correspond to the current scaling of the screen the form is displayed on. When a form is created and the scaling of the screen is higher than 100%, the size of the form might initially not be correct. Calling ResizeToScale after the initialization of the form ensures the size of the form is in line with the current setting for the scaling.

Calling ResizeToScale does not necessarily result in the Width and Height properties changing.