Solved

screen height?

Posted on 1997-08-31
3
294 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
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 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

21 Experts available now in Live!

Get 1:1 Help Now