home *** CD-ROM | disk | FTP | other *** search
- unit Dirstuff;
-
- { Program copyright (c) 1995 by Charles Calvert & Steve Teixeira}
- { Project Name: EXPLORER }
-
- interface
-
- uses
- WinTypes, WinProcs, Classes, Graphics, Forms,
- Controls, Buttons, StdCtrls, ExtCtrls, Dialogs;
-
- type
- TOptionsWin = class(TForm)
- Panel1: TPanel;
- EDelphiSource: TEdit;
- Label1: TLabel;
- Label4: TLabel;
- EBPSource: TEdit;
- BitBtn2: TBitBtn;
- BitBtn1: TBitBtn;
- Panel2: TPanel;
- CheckBox1: TCheckBox;
- Bevel1: TBevel;
- Panel3: TPanel;
- ETextEditor: TEdit;
- Label2: TLabel;
- OpenDialog1: TOpenDialog;
- procedure FormCreate(Sender: TObject);
- procedure FormClose(Sender: TObject; var Action: TCloseAction);
- procedure ETextEditorDblClick(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- OptionsWin: TOptionsWin;
-
- implementation
-
- {$R *.DFM}
-
- uses ExpIni, StrUtils;
-
- procedure TOptionsWin.FormCreate(Sender: TObject);
- begin
- Checkbox1.Checked := IniFile.ReadBool('SETTINGS', 'BubbleHelp', True);
- end;
-
- procedure TOptionsWin.FormClose(Sender: TObject; var Action: TCloseAction);
- begin
- EDelphiSource.Text := AddBackSlash(EDelphiSource.Text);
- EBPSource.Text := AddBackSlash(EBPSource.Text);
- end;
-
- procedure TOptionsWin.ETextEditorDblClick(Sender: TObject);
- begin
- if OpenDialog1.Execute then
- ETextEditor.Text := OpenDialog1.FileName;
- end;
-
- end.
-