home *** CD-ROM | disk | FTP | other *** search
- unit Cciccprf;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, TabNotBk, StdCtrls, Buttons, ExtCtrls;
-
- type
- TCCICPrefsDlg = class(TForm)
- TabbedNotebook1: TTabbedNotebook;
- OKBtn: TBitBtn;
- CancelBtn: TBitBtn;
- HelpBtn: TBitBtn;
- RadioGroup1: TRadioGroup;
- RadioGroup2: TRadioGroup;
- RadioGroup3: TRadioGroup;
- RadioGroup4: TRadioGroup;
- RadioGroup5: TRadioGroup;
- RadioGroup6: TRadioGroup;
- Edit1: TEdit;
- Label1: TLabel;
- CheckBox1: TCheckBox;
- RadioGroup7: TRadioGroup;
- RadioGroup8: TRadioGroup;
- RadioGroup9: TRadioGroup;
- RadioGroup10: TRadioGroup;
- CheckBox2: TCheckBox;
- RadioGroup11: TRadioGroup;
- RadioGroup12: TRadioGroup;
- ColorDialog1: TColorDialog;
- FontDialog1: TFontDialog;
- Label2: TLabel;
- Button1: TButton;
- Button2: TButton;
- RadioGroup13: TRadioGroup;
- RadioGroup14: TRadioGroup;
- Bevel1: TBevel;
- Label3: TLabel;
- Bevel2: TBevel;
- Label4: TLabel;
- Edit2: TEdit;
- Button3: TButton;
- OpenDialog1: TOpenDialog;
- Label5: TLabel;
- Edit4: TEdit;
- Button5: TButton;
- Label6: TLabel;
- RadioGroup15: TRadioGroup;
- Edit3: TEdit;
- Button4: TButton;
- RadioGroup16: TRadioGroup;
- Label7: TLabel;
- Edit5: TEdit;
- Label8: TLabel;
- Edit6: TEdit;
- Button6: TButton;
- Label9: TLabel;
- Edit7: TEdit;
- Button7: TButton;
- Label10: TLabel;
- Edit8: TEdit;
- Button8: TButton;
- Label11: TLabel;
- Edit9: TEdit;
- Button9: TButton;
- procedure OKBtnClick(Sender: TObject);
- procedure FormShow(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- CCICPrefsDlg: TCCICPrefsDlg;
-
- implementation
-
- {$R *.DFM}
- uses CCICCFrm;
-
- procedure TCCICPrefsDlg.OKBtnClick(Sender: TObject);
- begin
- case Tag of
- 2 : begin
- if CheckBox1.Checked then
- begin
- PasswordControlVector := 1;
- end
- else
- begin
- PassWordControlVector := 2;
- end;
- case RadioGroup6.ItemIndex of
- 0 : DefaultDownloadVector := 3;
- 1 : begin
- case RadioGroup5.ItemIndex of
- 0 : DefaultDownloadVector := 2;
- 1 : DefaultDownloadVector := 1;
- end;
- end;
- end;
- try
- TheAnonRedialVector := StrToInt( Edit1.Text );
- if TheAnonRedialVector < 1 then TheAnonRedialVector := 1;
- if TheAnonRedialVector > 50 then TheAnonRedialVector := 50;
- except
- On EConvertError do
- begin
- TheAnonRedialVector := 20;
- end;
- end;
- end;
- end;
- end;
-
- procedure TCCICPrefsDlg.FormShow(Sender: TObject);
- begin
- case Tag of
- 2 : begin
- case PasswordControlVector of
- 1 : CheckBox1.Checked := true;
- 2 : CheckBox2.Checked := false;
- end;
- case DefaultDownloadVector of
- 1 : begin
- RadioGroup5.ItemIndex := 1;
- RadioGroup6.ItemIndex := 1;
- end;
- 2 : begin
- RadioGroup5.ItemIndex := 0;
- RadioGroup6.ItemIndex := 1;
- end;
- 3 : begin
- RadioGroup5.ItemIndex := 0;
- RadioGroup6.ItemIndex := 0;
- end;
- end;
- Edit1.Text := IntToStr( TheAnonRedialVector );
- end;
- end;
- end;
-
- end.
-