Blame | Last modification | View Log | Download
// ******************************************************************************// This source has been created by Roman Schulz, 2002.// Visit my web-site at http://gds.oceany.cz for more info// ******************************************************************************unit SaveDialog;interfaceusesSysUtils, Dialogs, Forms, Controls, Classes, StdCtrls;typeTForm2 = class(TForm)Edit1: TEdit;Button1: TButton;Button2: TButton;Label1: TLabel;Button3: TButton;procedure Button1Click(Sender: TObject);procedure FormCreate(Sender: TObject);procedure Button2Click(Sender: TObject);procedure Button3Click(Sender: TObject);privateDestination: string;end;varForm2: TForm2;implementationuses Downloader;{$R *.DFM}//setupprocedure TForm2.FormCreate(Sender: TObject);beginDestination := Form1.destination;Edit1.text := Form1.Destination;end;//OKprocedure TForm2.Button1Click(Sender: TObject);beginForm1.Destination := Edit1.Text;Form1.enabled := true;Form2.visible := false;end;//Resetprocedure TForm2.Button2Click(Sender: TObject);beginForm1.Destination := Destination;Form1.enabled := true;Form2.visible := false;end;//Defaultprocedure TForm2.Button3Click(Sender: TObject);beginForm1.Destination := ExtractFilePath(Application.ExeName);Edit1.text := ExtractFilePath(Application.ExeName);end;end.// ******************************************************************************// This source has been created by Roman Schulz, 2002.// Visit my web-site at http://gds.oceany.cz for more info// ******************************************************************************