home *** CD-ROM | disk | FTP | other *** search
/ Quake++ for Quake / Quake++.iso / quake / unit4.~pa < prev    next >
Encoding:
Text File  |  1996-09-20  |  847 b   |  49 lines

  1. unit Unit4;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls,FmxUtils;
  8.  
  9. type
  10.   Tt = class(TForm)
  11.     Label1: TLabel;
  12.     Label2: TLabel;
  13.     Edit1: TEdit;
  14.     Button1: TButton;
  15.     Button2: TButton;
  16.     procedure Button2Click(Sender: TObject);
  17.     procedure Button1Click(Sender: TObject);
  18.   private
  19.     { Private declarations }
  20.   public
  21.     { Public declarations }
  22.   end;
  23.  
  24. var
  25.   t: Tt;
  26.   gdd:String;
  27.  
  28. implementation
  29.  
  30. uses unit1;
  31. {$R *.DFM}
  32.  
  33. procedure Tt.Button2Click(Sender: TObject);
  34. begin
  35. close;
  36. end;
  37.  
  38. procedure Tt.Button1Click(Sender: TObject);
  39. begin
  40. CopyFile(label1.caption,edit1.text);
  41. caption:=ExpandFileName(edit1.text);
  42. getdir(0,gdd);
  43. form1.filelistbox1.directory:='c:\';
  44. form1.filelistbox1.directory:=gdd;
  45. close;
  46. end;
  47.  
  48. end.
  49.