home *** CD-ROM | disk | FTP | other *** search
/ PC Format Collection 48 / SENT14D.ISO / tech / delphi / disk15 / filectrl.pak / FILEFORM.PAS < prev   
Encoding:
Pascal/Delphi Source File  |  1995-08-24  |  869 b   |  46 lines

  1. unit Fileform;
  2.  
  3. interface
  4.  
  5. uses WinTypes, WinProcs, Classes, Graphics, Forms, Controls,
  6.   FileCtrl, StdCtrls;
  7.  
  8. type
  9.   TFileCtrls = class(TForm)
  10.     FileListBox1: TFileListBox;
  11.     DirectoryListBox1: TDirectoryListBox;
  12.     DriveComboBox1: TDriveComboBox;
  13.     FilterComboBox1: TFilterComboBox;
  14.     PathLabel: TLabel;
  15.     FileEdit: TEdit;
  16.     Label2: TLabel;
  17.     Label1: TLabel;
  18.     Label3: TLabel;
  19.     Label4: TLabel;
  20.     procedure FileEditKeyPress(Sender: TObject; var Key: Char);
  21.   private
  22.     { Private declarations }
  23.   public
  24.     { Public declarations }
  25.   end;
  26.  
  27. var
  28.   FileCtrls: TFileCtrls;
  29.  
  30. implementation
  31.  
  32. uses SysUtils;
  33.  
  34. {$R *.DFM}
  35.  
  36. procedure TFileCtrls.FileEditKeyPress(Sender: TObject; var Key: Char);
  37. begin
  38.   if Key = #13 then 
  39.   begin
  40.     FileListBox1.ApplyFilePath(FileEdit.Text);
  41.     Key := #0;
  42.   end;
  43. end;
  44.  
  45. end.
  46.