Page 1 of 1
Windows scale
Posted: Sat Mar 28, 2020 5:40 pm
by dilfich
Hi!
Can I do something if the Windows scale is set to more than 100%?
So that the browser doesn't change the zoom.
Re: Windows scale
Posted: Sun Mar 29, 2020 8:48 am
by salvadordf
Try adding this code line before the GlobalCEFApp.StartMainProcess call in the DPR file :
Code: Select all
GlobalCEFApp.AddCustomCommandLine('--force-device-scale-factor', '1');
You may also need to open the Delphi project options for your application and open the "
Application->Manifest" section. Set the "
DPI awareness" to
None.
Re: Windows scale
Posted: Sun Mar 29, 2020 11:23 am
by dilfich
Thank you, it helped!