Delphi/Lazarus: Determine Screen Resolution
Question by Guest | 2015-03-20 at 15:24
I would like to detect the resolution of the screen from within my application in order to rearrange the content of my program to this size.
You should also know the display of monitor resolution when providing a full screen mode in your app.
Is there any possibility to retrieve width and height (in pixel) of the screen?
Related Topics
Android Splash Screen Tutorial
Tutorial | 0 Comments
Delphi/Lazarus: How to set up a Link to a Website in an Application
Tutorial | 0 Comments
Delphi: GetCursorPos problem on Windows 8.1 with scaling
Open Question | 1 Answer
Delphi/Lazarus: 3 Ways to round a Number to X Decimal Places
Tutorial | 7 Comments
Delphi/Lazarus: Command Line Parameter Tutorial Part 1: Sending
Tutorial | 0 Comments
Delphi: Global Treatment of Errors (Exceptions)
Tutorial | 0 Comments
No difference between HD and normal TV-Channel
Question | 2 Answers
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
You can just use TScreen, that should be automatically available in your program. Apart from other things, TScreen is providing the properties Width and Height:
Using this code, you are storing the resolution of your screen into the variables h and w.
2015-03-21 at 17:39