Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get the screen resolution?

Status
Not open for further replies.

jvff

Programmer
Apr 1, 2001
64
BR
Hello,
I want to get the screen Width and Screen Height. How can I do that? ThanQ, ;-)

JVFF (Janito Vaqueiro Ferreira Filho)
 
hi,

Screen.Width
Screen.Height

will give you the screen resolution for example
showmessage(inttostr(Screen.Width) +'x'+inttostr( Screen.Height) );
 
hi,

to get the available work space without the Windows task bar use this code:


var
sgScreen: TRect;
begin
SystemParametersInfo(SPI_GETWORKAREA, 0, @sgScreen, 0);


this gives you the workspace coordinates in sgScreen

wbr
Rod
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top