Solved

Resize the screen resolution

Posted on 1998-06-08
6
478 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 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

22 Experts available now in Live!

Get 1:1 Help Now