Mega Search
23.2 Million


Sign Up

Make a donation  
Display resolution  
News Group: embarcadero.public.cppbuilder.language.cpp

Hi,

  How can I re-adjust my FORM relative to the property setting of the PC 
running the application?

Thanks

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 23-Dec-2014, at 11:11 PM EST
From: Alain Bastien
 
Re: Display resolution  
News Group: embarcadero.public.cppbuilder.language.cpp
Hello,

Am 24.12.2014 um 08:11 schrieb Alain Bastien:
>    How can I re-adjust my FORM relative to the property setting of the PC
> running the application?

you could try something like this:

{code}
double dpi_ratio = (double)Screen->PixelsPerInch/96.0;
Control->Height = (int)(Control->Height * dpi_ratio);
{code}

HTH,

Hans

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 6-Jan-2015, at 12:27 AM EST
From: Johannes Weinert