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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
Sorry I'm late, I still want ask to you: Why form1.Scaled should set to False. Many Thanks for your help :)
Bob
you must set form1.scaled to false
and use true type fonts like arrial