You are viewing articles in the Graphics category &rarr


How to Determine the Screen Resolution

Posted December 15th @ 9:14 pm by m3Rlin

There are two ways to determine the screen’s height and width.
1) Use the global Screen variable.

uses
Forms;

Screen.Height { Screen height in pixels }
Screen.Width { Screen width in pixels }

2) Use the Windows API GetSystemMetrics() function. This function can be useful in applications that don’t use the VCL like [...]

How to Create a Gradient Form

Posted December 15th @ 9:13 pm by m3Rlin

In setup programs or sometimes in AboutBoxes you can find gradient forms.
It sure looks as if it were a lot of work but it’s really very easy. All you have to do is add this code to your program.
This example will create a gradient rectangle on the whole form Canvas. To change it’s size just [...]

« Previous Entries