Solved

Screen Saver

Posted on 1998-08-16
5
327 Views
Last Modified: 2010-04-04
I want to create a screen saver that will show bitmaps.

How can I create this?  (I'm working with Delphi3).
0
Comment
Question by:tktk
  • 2
  • 2
5 Comments
 
LVL 5

Expert Comment

by:inter
ID: 1335943
Hi,
IN ITS SIMPLE FORM screen saver is just a trivial exe program with some requirements. Example:

1 - Open a new project. Add TImage (say Image1) to it. Clear the caption of the form and clean the System Menu Items set. Set form to show windows as wsMaximized(and do other cosmetic), set always on top etc...
2 - add the following to the MouseMove, MouseClick, KeyUp events
begin
  Close;
end;
3 - In formshow do the following
begin
   Image1.Picture.LoadFromFile('MYBITMAP');
end;
4 - Compile the project and rename the executable from .exe to .scr. And copy it to 'windows\system'.(or winnt\system32')

This the dump way of doing screen saver. However,actually there are several specialties about the screen savers(for example preview). If you want such a thing then give me your email and I'll send you a screen saver source...
Regards,
Igor
0
 
LVL 4

Expert Comment

by:d003303
ID: 1335944
Take a look at my PAQ
http://www.experts-exchange.com/topics/comp/lang/delphi/Q.10053332
wich includes a complete description of a screensaver and a sample screen saver source.

Slash/d003303
0
 

Author Comment

by:tktk
ID: 1335945
my email is:

talklein@ort.org.il

please send me your screen saver source.

0
 
LVL 4

Accepted Solution

by:
d003303 earned 200 total points
ID: 1335946
Yo,
I sent you the sources. Copy ssaverform.pas into your link path and add it to your form repository.
Take a look at the sample (rest of the files). The magic lies in ssaverform.pas and saver1, the project source.
To implement your screen saver on that framework, change the configuration form and add a changing image to the saver form, changing with the timer events.

Have fun,
Slash/d003303
0
 

Author Comment

by:tktk
ID: 1335947
thank you very much!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now