Solved

Display in different resolution

Posted on 1998-11-15
8
201 Views
Last Modified: 2011-09-20
I would like my application to look good in resolution higher then 800x600 (which is what I develop in).

I am using anchors (Delphi 4) which helps a lot. My only problem is one of my screen has 4 big buttons in the middle. If I just move them to the center the screen looks empty. How can I change the size/font of the buttons to accomodate new resolutions ? I can think of how to do it the hard way but I suspect there might be a better way.
0
Comment
Question by:yvesmail
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 1346909
hi yvesmail,

the form has a property scaled.
Set it to true and all controlls in the Form should be scaled depents of the resolution.


But i have not tested.

meikl
0
 
LVL 1

Accepted Solution

by:
xpher earned 180 total points
ID: 1346910
Try using on FormCreate
ChangeScale(x, 100) where x is the percentage that you would like to scale to. ie if you create in 800x600 and want it to display in higher resolution that is say 40% greater then
ChangeScale(140, 100);
(ie 140%)
You could write code like

if Screen Width > 800 then
 ChangeScale(140, 100);

Obviously you will have to work out percentage yourself.

Or you could use scaleby one changes only the form the other changes components too.

Hope this helps

Chris :)
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1346911
I have a component I've done another person here on E-E...

I could send you the srouce code if you want...

If you want me to do so, I'd like to get the credit if you like the component...

Cheers,
Viktor
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:yvesmail
ID: 1346912
Thank you. I will try these suggestions.

Viktor: That would be great if you could send me your source code. I will give you the credit if I use it. My email: ymailhot@magma.ca
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1346913
Hello!

I just sent it to you. Hope that's what you needed ....

Cheers,
Viktor
0
 

Author Comment

by:yvesmail
ID: 1346914
It turns out all I need is what xpher proposed. I added the following line and it works great. Thank you Viktor for your component but it looks like I won't need it.
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1346915
...
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1346916
That's what y'all out there say...
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tidtcpserver connection lost handle 2 118
CheckListBox usage 3 95
Delphi: sending SMS on android platform 1 93
how can i delete one control based on its tagstring ? 6 53
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

742 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question