Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about scale #489

Closed
Evanchl opened this issue Nov 7, 2023 · 4 comments
Closed

about scale #489

Evanchl opened this issue Nov 7, 2023 · 4 comments

Comments

@Evanchl
Copy link

Evanchl commented Nov 7, 2023

Hi, here's my problem i code on delphi 10.1, with 2k screen (150% on windows scale)
and without Enable-High-DPI
When i launch my app without cef no problem, and when i add :

CreateGlobalCEFApp;
if GlobalCEFApp.StartMainProcess then

the app length and height are only 2/3 of the original size

How do I solve this problem?
please give me some code to fix it
Uploading image.png…

@salvadordf
Copy link
Owner

Hi,

I can't see the attached screenshot but this seems to be a duplicate if the issue #484

@Evanchl
Copy link
Author

Evanchl commented Nov 8, 2023

issue #484 i can not find the answer.
i run DLLBrowser demo
before i click 1. Initialize it's normal
image

after i click 1. Initialize ,It has become smaller and form caption disappeared。
image

image

@salvadordf
Copy link
Owner

salvadordf commented Nov 11, 2023

I tested the DLLBrowser demo again with Delphi 12 in Windows 10 with a 4k monitor using 200% scale and it works correctly.

Please, check that the CEF4DelphiLoader project has the right manifest settings.

Right-click on the "CEF4DelphiLoader.exe" node in the "Projects" panel and select "Options".

Then go to the "Application -> Manifest" section and make sure the "DPI awareness" option has a "Per monitor" value and the "Manifest File" option is set to "Auto Generate".

@salvadordf
Copy link
Owner

Another workaround: call SetProcessDpiAwareness before loading the CEF.

Similar issue in stackoverflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants