Solved

Resize the screen resolution

Posted on 1998-06-08
6
480 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
Independent Software Vendors: 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: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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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