home *** CD-ROM | disk | FTP | other *** search
- unit Fileform;
-
- interface
-
- uses WinTypes, WinProcs, Classes, Graphics, Forms, Controls,
- FileCtrl, StdCtrls;
-
- type
- TFileCtrls = class(TForm)
- FileListBox1: TFileListBox;
- DirectoryListBox1: TDirectoryListBox;
- DriveComboBox1: TDriveComboBox;
- FilterComboBox1: TFilterComboBox;
- PathLabel: TLabel;
- FileEdit: TEdit;
- Label2: TLabel;
- Label1: TLabel;
- Label3: TLabel;
- Label4: TLabel;
- procedure FileEditKeyPress(Sender: TObject; var Key: Char);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- FileCtrls: TFileCtrls;
-
- implementation
-
- uses SysUtils;
-
- {$R *.DFM}
-
- procedure TFileCtrls.FileEditKeyPress(Sender: TObject; var Key: Char);
- begin
- if Key = #13 then
- begin
- FileListBox1.ApplyFilePath(FileEdit.Text);
- Key := #0;
- end;
- end;
-
- end.
-