CAST II Game Engine

   DESCRIPTION       FEATURES       SCREENSHOTS       FORUMS       DOCUMENTATION       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Class TScreenSaverStarter

Unit

AppsInit

Declaration

type TScreenSaverStarter = class(TAppStarter)

Description

Screen saver specific implementation of TAppStarter

Hierarchy

TAppStarter

Fields

 NameDescription
ProtectedWindowClassCurrent window class

Methods

Overview

Publicconstructor Create(const AProgramName: string; AWindowProc: TWndProc; Options: TStarterOptions);
Publicdestructor Destroy; override;
Publicprocedure Configure; virtual;
Protectedprocedure ParseParamStr; override;
Publicprocedure PrintError(const Msg: string; ErrorType: TLogLevel); override;
Protectedfunction ProcessMessage(Msg: Longword; wParam: Integer; lParam: Integer): Integer; override;
Publicfunction QueryPassword: Boolean; virtual;
Publicprocedure Run(APreviewMode: Boolean); virtual;
Publicprocedure SetPassword; virtual;

Description

Publicconstructor Create(const AProgramName: string; AWindowProc: TWndProc; Options: TStarterOptions);

Create and setup a screen saver with the given name. If AWindowProc is nil a default procedure will be used.

Publicdestructor Destroy; override;

 

Publicprocedure Configure; virtual;

Shows a configuration window. Usally called from OS screen saver setup dialog

Protectedprocedure ParseParamStr; override;

This method should be overridden to do parameters parsing

Publicprocedure PrintError(const Msg: string; ErrorType: TLogLevel); override;

Prints an error information

Protectedfunction ProcessMessage(Msg: Longword; wParam: Integer; lParam: Integer): Integer; override;

Windows message handler

Publicfunction QueryPassword: Boolean; virtual;

Calls system routine to ask user for password and returns True if no password needed or user enter correct password

Publicprocedure Run(APreviewMode: Boolean); virtual;

Runs the screen saver. If APreviewMode is True the screen saver will run in preview window.

Publicprocedure SetPassword; virtual;

Calls system routine to request password

Properties

Overview

Publicproperty PreviewMode: Boolean;

Description

Publicproperty PreviewMode: Boolean;

True if the screen saver is running in preview mode

Last modified: 4 Jul, 2008
Copyright (C) 2006-2008, casteng.com