Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Windows scale

Post Reply
dilfich
Posts: 330
Joined: Thu Nov 30, 2017 1:17 am

Windows scale

Post 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.
User avatar
salvadordf
Posts: 4040
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Windows scale

Post 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.
dilfich
Posts: 330
Joined: Thu Nov 30, 2017 1:17 am

Re: Windows scale

Post by dilfich »

Thank you, it helped!
Post Reply