Class TfrmSaver (unit screenCode)

Inherits from

TForm

************************************************************************** ssaver95 -- a delphi screen saver that requires little work to personalize Copyright (C) 1998 under the GNU public license by Christopher Litsinger xopher@interiority.org This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. For more information, check out more information on the copyleft at http://www.gnu.org/copyleft/copyleft.html **************************************************************************

Constructors



Functions

procedure FormCreate(Sender: TObject);

95 00 00 00

procedure FormMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);

if not pwdMode

procedure FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);

no need to use mouseUp, as mouse down pretty much catches it

procedure FormPaint(Sender: TObject);

ignore a couple of movements, then close the screen saver

procedure FormShow(Sender: TObject);

when the password dialog is moved, just paint the appropriate area

procedure TimerEvent(Sender: TObject);

create our nifty little thread

procedure CreateParams (var Params : TCreateParams);

the animation thread

disable the system keys


procedure EndSS;

put this at the top of the zorder

procedure WMEraseBkgnd (var Msg : TMessage);


procedure WMKeyDown (var Msg : TWMKeyDown);

capture and ignore any screen saver execution commands

procedure WMSysCommand (var Msg : TWMSysCommand);

don't let them do it

procedure WMSysKeyDown (var Msg : TWMSysKeyDown);


Properties

Events

Variables

Timer : TTimer;


displayThread : TDisplayThread;


mouseTicks : Word;

Private declarations


Constructors


Functions


procedure FormCreate(Sender: TObject);

95 00 00 00


procedure FormMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);

if not pwdMode


procedure FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);

no need to use mouseUp, as mouse down pretty much catches it


procedure FormPaint(Sender: TObject);

ignore a couple of movements, then close the screen saver


procedure FormShow(Sender: TObject);

when the password dialog is moved, just paint the appropriate area


procedure TimerEvent(Sender: TObject);

create our nifty little thread


procedure CreateParams (var Params : TCreateParams);

the animation thread

disable the system keys


procedure EndSS;

put this at the top of the zorder


procedure WMEraseBkgnd (var Msg : TMessage);


procedure WMKeyDown (var Msg : TWMKeyDown);

capture and ignore any screen saver execution commands


procedure WMSysCommand (var Msg : TWMSysCommand);

don't let them do it


procedure WMSysKeyDown (var Msg : TWMSysKeyDown);


Properties


Events


Variables


Timer : TTimer;


displayThread : TDisplayThread;


mouseTicks : Word;

Private declarations