TIP: Click on subject to list as thread! ANSI
echo: delphi
to: BRYAN SMITH
from: YVES VAN HAL
date: 1996-11-21 21:44:00
subject: Screen Savers

Hello Bryan,
 > Can anybody explain how to write a Windows 3.1 Screen Saver in Delphi 1
 > ?
In the October/November issues of PCPlus (a British magazine) it is 
completely explained. Basically, a screen saver is a program just like any 
other, except that the extension is .SCR and that you need to use a directive 
to make the executable a valid screen saver. There are some things you need 
to consider:
* The form you use must be maximized in the OnActivate method
(WindowState:=wsMaximized). Trying to do this at another moment will not 
produce the correct result.
* You will need a timer which checks if there's a user input, either mouse or 
keyboard and which terminates the application if the user uses one of them.
* If you are using bitmaps or other binary files, make sure there are inside 
your executable, as you can never be sure where the user may have put his 
windows directory.
* The directive to be included is
{$D SCRNSAVE ... }
where ... is the text you want to appear in the selection list of the Win 
screen savers.
I hope this helps ?
Belgian Greetings,
Yves
--- FMail 0.92
---------------
* Origin: First there was Oracle, finally we got Delphi (2:292/8014.9)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.