Author: Luis Navarro
In RAD Studio 10 Seattle, we’ve added per-DPI awareness in the VCL. This means that, when moving a form from one monitor to another one that has different DPI, the VCL form and the controls will be rescaled according to the new DPI, with no specific coding needed (video included below).
As a testing scenario, and for this demos: we’ve setup 3 monitors that have different DPIs:
After that, we ran a sample VCL application and the Visual Studio DPI Awareness Tutorial application side by side. No coding has been added to the VCL app to adapt the form and controls to the different DPIs, there’s only code to get and show the monitor’s settings.
As you can see in the following screenshots, the VCL window and controls are resized according to the DPI of the monitor where is placed (again, no code needed for this behavior). We’ve also used the sample application provided by Microsoft to ensure that everything behaved perfectly.
1st monitor: Scaling 100%
2nd monitor: scaling 125%
3rd monitor: scaling 150%
And back to 1st monitor
Bellow there’s a video where you can see the application scaling in real-time with precision and no hiccups.
In this file you can find the source code for the Delphi application: DelphiDpiAware
And here it is the Microsoft entry for their testing app: https://code.msdn.microsoft.com/windowsapps/DPI-Tutorial-sample-64134744 and the compiled exe: DPITutorial_exe_VS , please launch adding character p as paramter (to run the Visual Studio sample you may need to install the Visual C++ redistributable packages link: http://www.microsoft.com/en-US/download/details.aspx?id=40784).
An absolutely must have feature, now that is more frequent to find environments with monitors with different DPIs.
Design. Code. Compile. Deploy.
Start Free Trial Upgrade Today
Free Delphi Community Edition Free C++Builder Community Edition
What is the best specs for a laptop for 3 monitors?
Haven’t really got an answer for “the best specs” because there are so many different options. As long as the machine meets the specs for running RAD Studio then it should work fine but the more CPU power and the better the graphics card the better it will be. I did this search and there were 100s of excellent choices but we’re not really in a position to tell you which ones would work best for you: https://www.google.com/search?q=laptop+with+three+monitors