Solved

Screen Saver Description

Posted on 2001-08-23
7
224 Views
Last Modified: 2012-05-04
Hi

I have written a screen saver app. The only thing left is to get Windows to display the correct description in its dropdown list. When I go to Display Properties, Screen Saver, my screen saver is always displayed as its file name (excluding .scr).

For example, if my screen saver's file name is "HelloBob.scr" then it appears in Windows' list of screen savers as "HelloBob".

How can I give my screen saver a description that is different from its file name?  (Example: The "Beziers" screen saver's file name is actually "ssbeziers.scr".)

Thanks,
JB
0
Comment
Question by:JimBob091197
7 Comments
 
LVL 6

Expert Comment

by:MannSoft
ID: 6417908
I was told to use:

{$D SCRNSAVE My Screen Saver Description}

But it doesnt seem to work on Win2k.  So either the person who told me that was wrong, or it only works on Win9x systems I guess.
0
 
LVL 8

Expert Comment

by:TOndrej
ID: 6418065
http://community.borland.com/article/0,1410,26652,00.html says that it's enough to create a string resource with ID 1
0
 
LVL 8

Accepted Solution

by:
TOndrej earned 150 total points
ID: 6418081
http://www.wischik.com/scr/howtoscr.html says that the above is only for WinNT. According to the article, on Win9x you should use a long file name
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6418144
maybe this link help

Coding Windows Screen Savers with Delphi.
http://delphi.about.com/cs/screensavers/index.htm
0
 
LVL 5

Author Comment

by:JimBob091197
ID: 6420963
Thanks everybody for your feedback.

To Mannsoft:

I have tried using {$D SCRNSAVE My Description} but it doesn't seem to work. Based on VC++ samples I found, I have also tried the following:

{$D SCRNSAVE 'My Descrip'}
{$D 'SCRNSAVE : My Descrip'}

None of these seem to work.


To TOndrej:

Thanks for the links. I am working on Win 2000, but have 98 at home, so I will test it later on 98. It appears that Win 95 (98?) & NT (2000?) work differently, which is a pity. I have considered using the file name as the description, but I would like a space in the file name and Delphi doesn't allow a space in your DPR name, which means that I have to keep renaming the screen saver every time I do a build.

I have tested it on Win 2000 and it does indeed work if you create a string resource 1 with a string of less than 25 chars. Also it only works if your screen saver file has 8 or less chars, and it must be lower case! Strange...


To Mnasman:

I had a brief look at the link you gave, but couldn't find anything about screen saver descriptions.


Thanks,
JB
0
 
LVL 5

Author Comment

by:JimBob091197
ID: 6420970
Thanks.
JB
0
 
LVL 8

Expert Comment

by:TOndrej
ID: 6420992
Glad to help, thanks for the points
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 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

15 Experts available now in Live!

Get 1:1 Help Now