?
Solved

Display in different resolution

Posted on 1998-11-15
8
Medium Priority
?
208 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 720 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

649 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