TIP: Click on subject to list as thread! ANSI
echo: delphi
to: BART BROERSMA
from: DANIL LAVRENTIUCK
date: 1997-10-18 16:07:00
subject: Screen Saver

Hello, Bart!
(11 Oct 1997 (Sa)) Bart Broersma wrote to All:
BB> Is ther anyone who can give me a basic understanding of how to write a
BB> simple screensave in D1/D2 ?
BB> Preferably a skeleton-like program ?
I've found such sample on CD which come with "Delphi 3 Superbible" book.
I didn't try this sample. :)
============[Start of unit1.pas - Are you ready to see it?]============
unit Unit1;
interface
uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls;
type
  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
    procedure FormKeyPress(Sender: TObject; var Key: Char);
  private
    { Private declarations }
  public
    { Public declarations }
  end;
var
  Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.FormCreate(Sender: TObject);
begin
  Form1.Top := 0;
  Form1.Left := 0;
  Form1.Width := Screen.Width;
  Form1.Height := Screen.Height;
  ShowCursor(False);
end;
procedure TForm1.FormKeyPress(Sender: TObject; var Key: Char);
begin
  ShowCursor(True);
  Close;
end;
end.
============[End of unit1.pas - It was too small, was it?]============
    That's all... Good luck!
                                    Eleneldil
E-mail : arilou@sbor.ru (home), arilou@laes.sbor.ru (work)
ICQ UIN: 1379978
--- Malinoldo 2.50+
---------------
* Origin: Ranger of the Sidereal Ways (2:5030/548.16)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.