home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2003 May
/
PCWorld_2003-05_cd.bin
/
Software
/
Vyzkuste
/
divfix
/
Source
/
DirRequester.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
2002-09-21
|
2KB
|
71 lines
{DivFix is a utility for reindexing partial DivX AVI movies
Copyright (C) 2000-2002 Csaba Budai
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA}
unit DirRequester;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, FileCtrl;
type
TForm4 = class(TForm)
DirectoryListBox1: TDirectoryListBox;
Button1: TButton;
Button2: TButton;
DriveComboBox1: TDriveComboBox;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form4: TForm4;
implementation
uses DivX;
{$R *.DFM}
procedure TForm4.Button1Click(Sender: TObject);
begin
If Copy(DirectoryListBox1.Directory,Length(DirectoryListBox1.Directory),1)='\' Then
Form1.MaskEdit2.Text:=DirectoryListBox1.Directory
Else Form1.MaskEdit2.Text:=DirectoryListBox1.Directory+'\';
Form1.Enabled:=True;
Form4.Close;
end;
procedure TForm4.Button2Click(Sender: TObject);
begin
Form1.Enabled:=True;
Form4.Close;
end;
procedure TForm4.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Form1.Enabled:=True;
end;
end.