Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: DPI awareness


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Aug 21, 2017 12:55 AM Last Post By: Toby Dobbs
Toby Dobbs

Posts: 77
Registered: 9/24/16
DPI awareness  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 18, 2017 7:07 AM
Hi,

I have an application which I have discovered does not adapt to different DPIs. I am using Delphi 10.1 which is supposedly DPI aware. Is there something I have missed which is needed for a DPI-aware application.

I have set the scaled prpoerty to True for all forms. The application is designed as an MDI.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: DPI awareness  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 18, 2017 1:04 PM   in response to: Toby Dobbs in response to: Toby Dobbs
Toby Dobbs wrote:

I am using Delphi 10.1 which is supposedly DPI aware.

The IDE is DPI-aware (though some portions of it are not), as is the
VCL, yes (though the implementations are not perfect).

Is there something I have missed which is needed for a DPI-aware
application.

Does your VCL app have a manifest that marks it as being DPI-aware? Or
at least call SetProcessDPIAware() or SetProcessDpiAwareness() at
startup? It is not enough to use a DPI-aware VCL framework if the OS
does not know your app is DPI-awere to begin with.

--
Remy Lebeau (TeamB)
Toby Dobbs

Posts: 77
Registered: 9/24/16
Re: DPI awareness  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 21, 2017 12:55 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Does your VCL app have a manifest that marks it as being DPI-aware? Or
at least call SetProcessDPIAware() or SetProcessDpiAwareness() at
startup? It is not enough to use a DPI-aware VCL framework if the OS
does not know your app is DPI-awere to begin with.

I tried compiling the application with Dpi-High set to true, in the manifest file settings, but this rendered very odd-looking results as well.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02