Solved

Display in different resolution

Posted on 1998-11-15
8
202 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
Industry Leaders: 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

717 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