Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
Exchange Links About this site Links to us 
New related comments Number of comments in the last 48 hoursPlay WAV files 1 new comments
|
How to create a Windows screen saver with Delphi
4 comments. Current rating: (1 votes). Leave comments and/ or rate it.
The following steps will create a Windows screensaver straight from a Delphi project.
- In the project file (*.dpr) add after the uses clause.
- On the main form, turn off the border and icon controls. In the activate method set the form left and top to 0, and set the Windowstate to wsMaximize.
- In the form create method, set the Application.OnMessage to a method that controls the deactivation of the screen saver. Set the Application.OnIdle method to whatever display method for the saver.
- In the form create method the command line should be tested for /c and /s. These are the command line parameters windows uses to define whether the screensaver should run or configure. (/c is for configuration)
- Compile the program, and rename the .exe to .scr. Move it to the windows directory, and it should show up in the control panel.
Comments:
|