home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: Shareware for Win 95
/
Chip-Shareware-Win95.bin
/
ostatni
/
delphi
/
delphi1
/
winfo151.exe
/
README.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-09-06
|
1KB
|
52 lines
unit Readme;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Menus;
type
TfrmReadMe = class(TForm)
Memo1: TMemo;
MainMenu1: TMainMenu;
File1: TMenuItem;
Exit1: TMenuItem;
procedure FormCreate(Sender: TObject);
procedure Exit1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmReadMe: TfrmReadMe;
implementation
{$R *.DFM}
procedure TfrmReadMe.FormCreate(Sender: TObject);
var s : string;
begin
s := UpperCase(ExtractFilePath(Application.exename) + 'readme.txt');
self.caption := 'File: ' + s;
try
memo1.Lines.LoadFromFile(s);
except
On EFOpenError do begin
ShowMessage('File ' + s + ' is not found in the current directory.');
memo1.lines.clear;
memo1.lines.add('File ' + s + ' is not found in the current directory.');
end;
end;
end;
procedure TfrmReadMe.Exit1Click(Sender: TObject);
begin
self.close;
end;
end.