Go Back   Wiki NewForum | Latest Entertainment News > Career Forum & Tips > Tech Forum & Tutorial > Oracle Database, SQL, Application, Programming


Quick way to retrieve current screen resolution


Reply
Views: 1687  
Thread Tools Rate Thread
  #1  
Old 08-09-2010, 01:15 PM
bholas bholas is offline
Award Winner
 
Join Date: Apr 2010
Posts: 4,977
Default Quick way to retrieve current screen resolution

Why use the Windows API when you can retrieve the current screen resolution using two simple variables?
Screen.Width
Screen.Height



Above variables will automatically get updated if the screen resolution were to change while the application is running.
MessageDlg(
'screen width = ' + IntToStr( Screen.Width ) +
', screen height = ' + IntToStr( Screen.Height ),
mtInformation, [mbOk], 0 );

Reply With Quote
Reply

Tags
programming tips

New topics in Oracle Database, SQL, Application, Programming





Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
WikiNewForum)