-
Notifications
You must be signed in to change notification settings - Fork 0
/
customcommandf.lfm
257 lines (257 loc) · 5.79 KB
/
customcommandf.lfm
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
object CustomCommandForm: TCustomCommandForm
Left = 547
Height = 264
Top = 239
Width = 386
BorderIcons = [biSystemMenu, biMinimize]
BorderStyle = bsToolWindow
Caption = 'Пользовательские команды'
ClientHeight = 264
ClientWidth = 386
OnShow = FormShow
Position = poDefault
LCLVersion = '1.6.0.4'
object mCustomCommand: TMemo
AnchorSideLeft.Control = Label2
AnchorSideTop.Control = Label2
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = cbCommands
Left = 8
Height = 119
Top = 31
Width = 264
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Top = 8
BorderSpacing.Right = 8
TabOrder = 0
end
object btSend: TButton
AnchorSideLeft.Control = mCustomCommand
AnchorSideTop.Control = eTimeout
AnchorSideTop.Side = asrBottom
Left = 8
Height = 25
Top = 228
Width = 75
BorderSpacing.Top = 8
Caption = 'Отправить'
Default = True
OnClick = btSendClick
TabOrder = 1
end
object cbCommands: TComboBox
Left = 280
Height = 23
Hint = 'Зарегестрированные команды, поддерживаемые'#13#10'подключенным прибором'
Top = 31
Width = 100
ItemHeight = 15
ParentShowHint = False
ShowHint = True
Sorted = True
TabOrder = 2
Text = 'cbCommands'
end
object eInt1: TSpinEdit
AnchorSideLeft.Control = cbCommands
AnchorSideTop.Control = Label1
AnchorSideTop.Side = asrBottom
Left = 280
Height = 23
Top = 85
Width = 74
BorderSpacing.Top = 8
TabOrder = 3
end
object eFloat: TFloatSpinEdit
AnchorSideLeft.Control = cbCommands
AnchorSideTop.Control = eInt2
AnchorSideTop.Side = asrBottom
Left = 280
Height = 23
Top = 147
Width = 74
BorderSpacing.Top = 8
Increment = 1
MaxValue = 100
MinValue = 0
TabOrder = 4
Value = 0
end
object eInt2: TSpinEdit
AnchorSideLeft.Control = cbCommands
AnchorSideTop.Control = eInt1
AnchorSideTop.Side = asrBottom
Left = 280
Height = 23
Top = 116
Width = 74
BorderSpacing.Top = 8
TabOrder = 5
end
object Label1: TLabel
AnchorSideLeft.Control = cbCommands
AnchorSideTop.Control = cbCommands
AnchorSideTop.Side = asrBottom
Left = 280
Height = 15
Top = 62
Width = 40
BorderSpacing.Top = 8
Caption = 'Запрос'
ParentColor = False
end
object cbQuery: TCheckBox
AnchorSideTop.Control = Label1
AnchorSideRight.Control = cbCommands
AnchorSideRight.Side = asrBottom
Left = 360
Height = 19
Top = 62
Width = 20
Anchors = [akTop, akRight]
TabOrder = 6
end
object cbInt1: TCheckBox
AnchorSideTop.Control = eInt1
AnchorSideRight.Control = cbCommands
AnchorSideRight.Side = asrBottom
Left = 360
Height = 19
Top = 85
Width = 20
Anchors = [akTop, akRight]
TabOrder = 7
end
object cbInt2: TCheckBox
AnchorSideTop.Control = eInt2
AnchorSideRight.Control = cbCommands
AnchorSideRight.Side = asrBottom
Left = 360
Height = 19
Top = 116
Width = 20
Anchors = [akTop, akRight]
TabOrder = 8
end
object cbFloat: TCheckBox
AnchorSideTop.Control = eFloat
AnchorSideRight.Control = cbCommands
AnchorSideRight.Side = asrBottom
Left = 360
Height = 19
Top = 147
Width = 20
Anchors = [akTop, akRight]
TabOrder = 9
end
object cbTerminator: TComboBox
AnchorSideTop.Control = mCustomCommand
AnchorSideTop.Side = asrBottom
Left = 118
Height = 23
Top = 166
Width = 76
BorderSpacing.Top = 16
ItemHeight = 15
ItemIndex = 0
Items.Strings = (
'CR'
'LF'
'CRLF'
)
TabOrder = 10
Text = 'CR'
end
object btAdd: TButton
AnchorSideLeft.Control = cbCommands
AnchorSideTop.Control = eFloat
AnchorSideTop.Side = asrBottom
Left = 280
Height = 25
Top = 186
Width = 100
BorderSpacing.Top = 16
Caption = 'Добавить'
OnClick = btAddClick
TabOrder = 11
end
object Label2: TLabel
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = Owner
Left = 8
Height = 15
Top = 8
Width = 34
BorderSpacing.Left = 8
BorderSpacing.Top = 8
Caption = 'Label2'
ParentColor = False
end
object btClear: TButton
AnchorSideLeft.Control = cbTerminator
AnchorSideTop.Control = btSend
Left = 118
Height = 25
Top = 228
Width = 75
Caption = 'Очистить'
OnClick = btClearClick
TabOrder = 12
end
object cbAwaitResponse: TCheckBox
AnchorSideLeft.Control = Label2
AnchorSideTop.Control = cbTerminator
AnchorSideTop.Side = asrBottom
Left = 8
Height = 19
Top = 197
Width = 106
BorderSpacing.Top = 8
Caption = 'Ожидать ответа'
TabOrder = 13
end
object eTimeout: TSpinEdit
AnchorSideLeft.Control = cbTerminator
AnchorSideTop.Control = cbAwaitResponse
Left = 118
Height = 23
Top = 197
Width = 76
MaxValue = 10000
TabOrder = 14
end
object Label3: TLabel
AnchorSideLeft.Control = mCustomCommand
AnchorSideTop.Control = cbTerminator
AnchorSideTop.Side = asrCenter
Left = 8
Height = 15
Top = 170
Width = 68
Caption = 'Терминатор'
ParentColor = False
end
object Label4: TLabel
AnchorSideLeft.Control = cbCommands
AnchorSideTop.Control = Label2
Left = 280
Height = 15
Top = 8
Width = 85
Caption = 'Список команд'
ParentColor = False
end
object Label5: TLabel
AnchorSideLeft.Control = eTimeout
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = eTimeout
Left = 202
Height = 15
Top = 197
Width = 15
BorderSpacing.Left = 8
Caption = 'мс'
ParentColor = False
end
end