Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 317
  • Last Modified:

screen height?

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
jexd99
Asked:
jexd99
1 Solution
 
ronit051397Commented:
procedure TForm1.Button1Click(Sender: TObject);
begin
showmessage('width is '+InttoStr(GetSystemMetrics(SM_CXSCREEN)));
showmessage('height is '+InttoStr(GetSystemMetrics(SM_CYSCREEN)));
end;

0
 
gk082597Commented:
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
 
jexd99Author Commented:
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 Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now