Solved

Resize the screen resolution

Posted on 1998-06-08
6
483 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
[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
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

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!

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 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…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

695 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