home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 January
/
Chip_1999-01_cd.bin
/
zkuste
/
delphi
/
QDB
/
QDBG.ZIP
/
MemoUnit.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1998-07-29
|
741b
|
41 lines
unit MemoUnit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ComCtrls, ExtCtrls;
type
TMemoForm = class(TForm)
Panel1: TPanel;
Panel2: TPanel;
CancelButton: TButton;
SaveButton: TButton;
RichEdit: TRichEdit;
LoadButton: TButton;
OpenDialog: TOpenDialog;
procedure LoadButtonClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
MemoForm: TMemoForm;
implementation
{$R *.DFM}
procedure TMemoForm.LoadButtonClick(Sender: TObject);
begin
if OpenDialog.Execute then
begin
RichEdit.Lines.LoadFromFile(OpenDialog.FileName);
end;
end;
end.