Attila Kovacs 629 Posted February 9, 2020 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
Der schöne Günther 316 Posted February 10, 2020 "It renders crap" is not a very accurate description of the problem you're having. Care to upload a screenshot? And maybe your application manifest? 1 Share this post Link to post
Attila Kovacs 629 Posted February 10, 2020 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
Attila Kovacs 629 Posted February 10, 2020 (edited) 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 February 10, 2020 by Attila Kovacs 1 Share this post Link to post
pyscripter 689 Posted February 11, 2020 @Attila KovacsI tried your suggestion and it works!! 1 Share this post Link to post