Solved

Resize the screen resolution

Posted on 1998-06-08
6
476 Views
Last Modified: 2010-04-04
Hi All,

How can I resize my app's window when the app was designed in another screen resolution than the running circumstances?
Is there any chance to detect the screen resolution and
manage the changes in a genle way.

Thanks in advance
Andras
0
Comment
Question by:bandi081497
6 Comments
 
LVL 5

Expert Comment

by:ronit051397
ID: 1351354
Screen.Height and Screen.Width
0
 

Author Comment

by:bandi081497
ID: 1351355
That's what I know. But I want some automatic solution.
When you set the screen width and height the objects what
your form contains doesn't changes their positions. So I have
to set each position. Whaaa, It's difficult.

So any other suggestion?
0
 
LVL 5

Expert Comment

by:ronit051397
ID: 1351356
More then few questions were asked about this issue, if you dig you'll find some.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:bandi081497
ID: 1351357
That's what I know. But I want some automatic solution.
When you set the screen width and height the objects what
your form contains doesn't changes their positions. So I have
to set each position. Whaaa, It's difficult.

So any other suggestion?
0
 

Expert Comment

by:spokraev
ID: 1351358
Set Form property Scaled to TRUE
0
 

Accepted Solution

by:
koger earned 200 total points
ID: 1351359
You could use this code to get the screen resolution:

x,y: integer;
  x := getSystemMetrics(SM_CXSCREEN);
  y := getSystemMetrics(SM_CYSCREEN);


This will fit the form:
  ScaleBy(x, 1024);

Guess that scaled must be set true
you should also resize the
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now