-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathuSerialPort.dfm
216 lines (216 loc) · 4.22 KB
/
uSerialPort.dfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
object frmSerialPort: TfrmSerialPort
Left = 0
Top = 0
BorderIcons = [biSystemMenu]
BorderStyle = bsDialog
Caption = 'Serial Port Interface'
Caption = 'Serial Port Interface'
ClientHeight = 291
ClientWidth = 650
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
OnClose = FormClose
OnCreate = FormCreate
PixelsPerInch = 96
TextHeight = 13
object Label2: TLabel
Left = 312
Top = 216
Width = 50
Height = 13
Caption = 'Send Data'
end
object GroupBox1: TGroupBox
Left = 8
Top = 8
Width = 281
Height = 169
Caption = 'COM Serial Port Settings'
TabOrder = 0
object Label1: TLabel
Left = 16
Top = 24
Width = 50
Height = 13
Caption = 'COM Port:'
end
object Label3: TLabel
Left = 16
Top = 51
Width = 54
Height = 13
Caption = 'Baud Rate:'
end
object Label4: TLabel
Left = 16
Top = 79
Width = 32
Height = 13
Caption = 'Parity:'
end
object Label5: TLabel
Left = 16
Top = 107
Width = 47
Height = 13
Caption = 'Data Bits:'
end
object Label6: TLabel
Left = 16
Top = 135
Width = 46
Height = 13
Caption = 'Stop Bits:'
end
object cmbPortName: TComboBox
Left = 104
Top = 21
Width = 145
Height = 21
TabOrder = 0
Text = 'Select Port Name'
end
object cmbBauderate: TComboBox
Left = 104
Top = 48
Width = 145
Height = 21
TabOrder = 1
Text = 'Select Baude Rate'
Items.Strings = (
'1200'
'2400'
'4800'
'9600'
'19200'
'38400'
'57600'
'115200')
end
object cmbParity: TComboBox
Left = 104
Top = 76
Width = 145
Height = 21
TabOrder = 2
Text = 'Select Parity'
Items.Strings = (
'None'
'Odd'
'Even'
'Mark'
'Space'
'')
end
object cmbDataBits: TComboBox
Left = 104
Top = 104
Width = 145
Height = 21
TabOrder = 3
Text = 'Select Data Bits'
Items.Strings = (
'7'
'8'
'9')
end
object cmbStopBits: TComboBox
Left = 104
Top = 132
Width = 145
Height = 21
TabOrder = 4
Text = 'Select Stop Bits'
Items.Strings = (
'None'
'One'
'Two'
'OnePointFive')
end
end
object btnConnect: TButton
Left = 183
Top = 216
Width = 106
Height = 49
Caption = 'Connect'
TabOrder = 1
OnClick = btnConnectClick
end
object GroupBox2: TGroupBox
Left = 8
Top = 183
Width = 169
Height = 82
Caption = 'Data Mode'
TabOrder = 2
object rdText: TRadioButton
Left = 32
Top = 24
Width = 113
Height = 17
Caption = 'Text'
Checked = True
TabOrder = 0
TabStop = True
end
object rdHex: TRadioButton
Left = 32
Top = 47
Width = 113
Height = 17
Caption = 'Hex'
TabOrder = 1
end
end
object txtSend: TEdit
Left = 368
Top = 213
Width = 257
Height = 21
TabOrder = 3
end
object btnSend: TButton
Left = 469
Top = 240
Width = 75
Height = 25
Caption = 'Send'
Enabled = False
TabOrder = 4
OnClick = btnSendClick
end
object btnClear: TButton
Left = 550
Top = 240
Width = 75
Height = 25
Caption = 'Clear'
TabOrder = 5
OnClick = btnClearClick
end
object rtxtDataArea: TRichEdit
Left = 312
Top = 8
Width = 313
Height = 199
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
ReadOnly = True
TabOrder = 6
end
object CnSerialPort1: TCnSerialPort
OnDataReceived = CnSerialPort1DataReceived
Left = 480
Top = 136
end
end