Jump to content
Sign in to follow this  
Attila Kovacs

TWebBrowser HDPI issue

Recommended Posts

I was playing with TWebBrowser and it turns out that it just renders crap in HDPI mode.

A simple winforms app with a webbrowser renders everything correctly.

 

Both exe's are added to FEATURE_BROWSER_EMULATION with 11000 and checked the compatibility mode with https://detectmybrowser.com/

 

Tested in 10.1/10.2/10.3

 

I could not find any report about it, maybe I'm doing something wrong. Has anyone else experienced this?

 

Share this post


Link to post

Wow @Der schöne Günther, bingo. I've compared the manifests between the winforms and the delphi app and the winforms app has no dpiAware:True in it.

So I unchecked it in Delphi and voila, they render the same. Thanks for the tip, but....

Now I have an other question... What should I do now? Looks like I would need it for the VCL app but not for the TWebBrowser!?

 

Share this post


Link to post

Got it.

 

The key is to register the exe name under "FEATURE_96DPI_PIXEL" in the registry with a dword=1.

This makes TWebBrowser render correctly in a DPIAware applicaiton.

 

Thank you @Der schöne Günther for the hint!

Edited by Attila Kovacs
  • Thanks 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×