Link to home
Start Free TrialLog in
Avatar of MamaBob
MamaBob

asked on

How to handling screen resolution?

Hi,

I try to adjust my application form size and position to screen resolution, so my form could showed properly.  I want my form still displayed as I designed in form designer, regardless of screen resolution.
I've tried to scale my form using PixelsPerInch property when it's created like this:

procedure TMyForm.FormCreate;
begin
  PixelsPerInch := GetDeviceCaps(Handle, LOGPIXELSY);// I've set scaled property to true at design time;
end;

I think my form was well scaled but it's ugly.  All my component on my form was not scaled as the form was.  I have many component on my form such as: coolbar, listview, label, etc.  My coolbar was cut off, and so all my label and other component still not scaled.
Is my way  correct ? How to solve this problem?
Big thanks to anyone who helps me

Regards,

Bob
ASKER CERTIFIED SOLUTION
Avatar of delpro
delpro

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of delpro
delpro

I forgot to add the following
you must set form1.scaled to false
and use true type fonts like arrial
Avatar of MamaBob

ASKER

Hi delpro,

Sorry I'm late, I still want ask to you: Why form1.Scaled should set to False. Many Thanks for your help :)

Bob