Solved

screen height?

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

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!

Question has a verified solution.

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

Suggested Solutions

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…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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