home *** CD-ROM | disk | FTP | other *** search
- unit Prevform;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, StdCtrls, Buttons, ExtCtrls, Prevcomp, PrevType,
- Printers;
-
- type
- TCCForm = class(TForm)
- Memo1: TMemo;
- Panel1: TPanel;
- BitBtn1: TBitBtn;
- procedure BitBtn1Click(Sender: TObject);
- private
- { Private declarations }
- procedure SetFileToShow(Value: string);
- public
- { Public declarations }
- property FileToShow: string write SetFileToShow;
- end;
-
- var
- CCForm: TCCForm;
-
- implementation
-
- {$R *.DFM}
-
- procedure TCCForm.SetFileToShow(Value: string);
- begin
- Memo1.Lines.Clear;
- Memo1.Lines.LoadFromFile(Value);
- end;
- procedure TCCForm.BitBtn1Click(Sender: TObject);
- begin
- Close;
- end;
-
- end.
-