Solved

screen height?

Posted on 1997-08-31
3
311 Views
Last Modified: 2010-04-04
There must be a simple way (?) to get the screen height (not my application window, but the actual screen height).  For example, I know my screen height is "480", but I shouldn't have to hard code this. Anyone know the answer to this?
          Thanks a bunch,
                  jexd99@aol.com
0
Comment
Question by:jexd99
[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
3 Comments
 
LVL 5

Accepted Solution

by:
ronit051397 earned 30 total points
ID: 1343275
procedure TForm1.Button1Click(Sender: TObject);
begin
showmessage('width is '+InttoStr(GetSystemMetrics(SM_CXSCREEN)));
showmessage('height is '+InttoStr(GetSystemMetrics(SM_CYSCREEN)));
end;

0
 

Expert Comment

by:gk082597
ID: 1343276
I suppose "height" is referring to height in pixels.
In that case look at the TScreen object.
Screen.Height and Screen.Width will give you the desired information
0
 

Author Comment

by:jexd99
ID: 1343277
Thanks for the info.  I figured Delphi had a fairly simple way
of accessing it, but sometimes the easiest things are the
hardest to find !! :)
0

Featured Post

Technology Partners: 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

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 this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

726 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