home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1992
/
17
/
bugs
/
bugsmsc.rc
< prev
next >
Wrap
Text File
|
1992-07-12
|
6KB
|
137 lines
//------------------------------------------------------------------------
//
// BUGS.RC -- Resource script for Bugs screen saver
//
// Copyright (c) 1992 Douglas Boling
//
//------------------------------------------------------------------------
#include <windows.h>
#include <scrnsave.h>
#include "bugsmsc.h"
//
//Required icon ID
//
ID_APP ICON "bugs.ico"
//
//Required String resource
//
STRINGTABLE PRELOAD
BEGIN
idsAppName "Screen Saver.Bugs"
idsIsPassword "PWProtected"
idsIniFile "control.ini"
idsScreenSaver "ScreenSaver"
idsPassword "Password"
idsDifferentPW "The values for the New and Old Passwords do not match.\n\nTry again."
idsChangePW "Change Password"
idsBadOldPW "The value for Old Password is not correct.\n\nCheck your screen-saver password, and then try again."
idsHelpFile "control.hlp"
idsNoHelpMemory "Not enough memory to start Help.\n\nQuit one or more applications to increase available memory, and then try again."
END
#include "about.dlg"
//------------------------------------------------------------------------
//Configuration dialog box
//------------------------------------------------------------------------
DLG_SCRNSAVECONFIGURE DIALOG 50, 50, 190, 150
STYLE DS_MODALFRAME | WS_SYSMENU | WS_VISIBLE | WS_POPUP
CAPTION "Bugs"
FONT 8, "Helv"
BEGIN
LTEXT "Max Number of Bugs", IDD_MAXBTEXT, 5, 10, 115, 10
SCROLLBAR IDD_MAXBLEVEL, 5, 20, 110, 12, WS_TABSTOP
LTEXT "Sustanance Level", IDD_SUSTEXT, 5, 35, 115, 10
SCROLLBAR IDD_SUSLEVEL, 5, 45, 110, 12, WS_TABSTOP
LTEXT "Birth Level", IDD_BIRTHTEXT, 5, 60, 115, 10
SCROLLBAR IDD_BIRTHLEVEL, 5, 70, 110, 12, WS_TABSTOP
CHECKBOX "Show new bugs as green pixels",
IDD_BIRTHCOLOR, 5, 83, 115, 12, WS_TABSTOP
CHECKBOX "Show dead bugs as red pixels",
IDD_DEATHCOLOR, 5, 95, 115, 12, WS_TABSTOP
GROUPBOX "Nutrition Levels", -1, 125, 5, 60, 100
LTEXT "Red", IDD_REDTEXT, 130, 20, 50, 10
SCROLLBAR IDD_REDLEVEL, 130, 30, 50, 12, WS_TABSTOP
LTEXT "Green", IDD_GREENTEXT, 130, 45, 50, 10
SCROLLBAR IDD_GREENLEVEL, 130, 55, 50, 12, WS_TABSTOP
LTEXT "Blue", IDD_BLUETEXT, 130, 70, 50, 10
SCROLLBAR IDD_BLUELEVEL, 130, 80, 50, 12, WS_TABSTOP
CHECKBOX "Enable Password", IDD_PWENABLE, 5, 110, 90, 15
PUSHBUTTON "Set Password...", IDD_PWSET, 100, 110, 85, 15
DEFPUSHBUTTON "OK", IDOK, 5, 130, 50, 15
PUSHBUTTON "Cancel", IDCANCEL, 70, 130, 50, 15
PUSHBUTTON "Help...", IDD_HELP, 135, 130, 50, 15
END
//-------------------------------------------------------------------
// Templates for Password dialogs. To use the SCRNSAVE dialog procs,
// the IDs can't be changed. So don't!
//-------------------------------------------------------------------
#define ID_OLDTEXT 100
#define ID_NEWTEXT 101
#define ID_AGAIN 102
#define ID_PASSWORD 103
#define ID_ETOLD 104
#define ID_ETNEW 105
#define ID_ETAGAIN 106
#define ID_ETPASSWORD 107
#define ID_ICON 108
#define ID_PASSWORDHELP 109
DLG_CHANGEPASSWORD DIALOG 10, 20, 170, 80
FONT 8, "MS Sans Serif"
STYLE WS_POPUP | DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Change Password"
BEGIN
LTEXT "&Old Password:", ID_OLDTEXT, 5, 5, 80, 12
EDITTEXT ID_ETOLD, 85, 5, 80, 12, ES_PASSWORD
LTEXT "&New Password:", ID_NEWTEXT, 5, 22, 80, 12
EDITTEXT ID_ETNEW, 85, 22, 80, 12, ES_PASSWORD
LTEXT "&Retype New Password:", ID_AGAIN, 5, 39, 80, 12
EDITTEXT ID_ETAGAIN, 85, 39, 80, 12, ES_PASSWORD
DEFPUSHBUTTON "OK", IDOK, 5, 60, 40, 15
PUSHBUTTON "&Help", ID_PASSWORDHELP, 65, 60, 40, 15
PUSHBUTTON "Cancel", IDCANCEL, 125, 60, 40, 15
END
DLG_ENTERPASSWORD DIALOG 250, 175, 230, 75
FONT 8, "MS Sans Serif"
STYLE WS_POPUP | DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Bugs"
BEGIN
ICON "", ID_ICON, 5, 5, 0, 0
LTEXT "The screen saver you are using is password protected."
-1, 30, 5, 195, 12
LTEXT "Please enter the password to disable the screen saver.",
-1, 30, 17, 195, 12
LTEXT "Password:", ID_PASSWORD, 30, 35, 40, 12
EDITTEXT ID_ETPASSWORD, 85, 35, 120, 12, ES_PASSWORD
DEFPUSHBUTTON "OK", IDOK, 50, 55, 40, 15
PUSHBUTTON "Cancel", IDCANCEL, 140, 55, 40, 15
END
DLG_INVALIDPASSWORD DIALOG 10, 20, 230, 60
FONT 8, "MS Sans Serif"
STYLE WS_POPUP | DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Bugs"
BEGIN
ICON "", ID_ICON, 5, 5, 0, 0
LTEXT "Incorrect password;\n\nCheck your screen saver password and try again.",
-1, 30, 5, 195, 40
DEFPUSHBUTTON "OK", IDOK, 95, 40, 40, 15
END