home *** CD-ROM | disk | FTP | other *** search
- unit Config;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, StdCtrls;
-
- type
- TfrmSettings = class(TForm)
- Label1: TLabel;
- Label2: TLabel;
- Label3: TLabel;
- Label4: TLabel;
- cboPort: TComboBox;
- cboBaud: TComboBox;
- cboParity: TComboBox;
- cboStop: TComboBox;
- cboData: TComboBox;
- Label5: TLabel;
- btnOK: TButton;
- Label6: TLabel;
- cboFlow: TComboBox;
- procedure btnOKClick(Sender: TObject);
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- frmSettings: TfrmSettings;
-
- implementation
-
- {$R *.DFM}
-
- procedure TfrmSettings.btnOKClick(Sender: TObject);
- begin
- Close;
- end;
-
- procedure TfrmSettings.FormCreate(Sender: TObject);
- begin
-
- cboPort.Items.Add('(none)');
- cboPort.Items.Add('1');
- cboPort.Items.Add('2');
- cboPort.Items.Add('3');
- cboPort.Items.Add('4');
- cboPort.Items.Add('5');
- cboPort.Items.Add('6');
- cboPort.Items.Add('7');
- cboPort.Items.Add('8');
- cboPort.Items.Add('9');
-
- cboBaud.Items.Add('110');
- cboBaud.Items.Add('300');
- cboBaud.Items.Add('600');
- cboBaud.Items.Add('1200');
- cboBaud.Items.Add('2400');
- cboBaud.Items.Add('4800');
- cboBaud.Items.Add('9600');
- cboBaud.Items.Add('14400');
- cboBaud.Items.Add('19200');
- cboBaud.Items.Add('38400');
- cboBaud.Items.Add('56000');
- cboBaud.Items.Add('128000');
- cboBaud.Items.Add('256000');
-
- cboData.Items.Add('4');
- cboData.Items.Add('5');
- cboData.Items.Add('6');
- cboData.Items.Add('7');
- cboData.Items.Add('8');
-
- cboParity.Items.Add('None');
- cboParity.Items.Add('Odd');
- cboParity.Items.Add('Even');
- cboParity.Items.Add('Mark');
- cboParity.Items.Add('Space');
-
- cboStop.Items.Add('1');
- cboStop.Items.Add('1.5');
- cboStop.Items.Add('2');
-
- cboFlow.Items.Add('None');
- cboFlow.Items.Add('RTS/CTS');
- cboFlow.Items.Add('XON/XOFF');
-
- end;
-
- end.
-