📄 comm_unit1.~dfm
字号:
object Form1: TForm1
Left = 31
Top = 18
Width = 736
Height = 487
Caption = '串口测试窗口(波特率,n,8,1)'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
Position = poScreenCenter
OnClose = FormClose
OnCreate = FormCreate
PixelsPerInch = 96
TextHeight = 13
object Label1: TLabel
Left = 592
Top = 112
Width = 56
Height = 16
Caption = '通讯口:'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = '宋体'
Font.Style = []
ParentFont = False
end
object Label2: TLabel
Left = 592
Top = 168
Width = 56
Height = 16
Caption = '波特率:'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = '宋体'
Font.Style = []
ParentFont = False
end
object Label3: TLabel
Left = 64
Top = 400
Width = 112
Height = 16
Caption = '串口打开状态:'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = '宋体'
Font.Style = []
ParentFont = False
end
object sdbutton: TButton
Left = 80
Top = 88
Width = 75
Height = 25
Caption = '发 送'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = '宋体'
Font.Style = []
ParentFont = False
TabOrder = 0
OnClick = sdbuttonClick
end
object send_w: TEdit
Left = 56
Top = 48
Width = 497
Height = 21
TabOrder = 1
end
object rcv_w: TMemo
Left = 56
Top = 128
Width = 497
Height = 241
TabOrder = 2
end
object comselect: TComboBox
Left = 592
Top = 128
Width = 97
Height = 24
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'MS Sans Serif'
Font.Style = []
ItemHeight = 16
ParentFont = False
TabOrder = 3
Text = 'COM1'
Items.Strings = (
'COM1'
'COM2'
'COM3'
'COM4')
end
object baudselect: TComboBox
Left = 592
Top = 184
Width = 97
Height = 24
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'MS Sans Serif'
Font.Style = []
ItemHeight = 16
ParentFont = False
TabOrder = 4
Text = '1200,E,8,1'
Items.Strings = (
'1200,E,8,1'
'1200,O,8,1'
'1200,N,8,1'
'1200,E,7,1'
'1200,O,7,1'
'1200,N,7,1'
'9600,E,8,1'
'9600,O,8,1'
'9600,N,8,1'
'9600,E,7,1'
'9600,O,7,1'
'9600,N,7,1')
end
object Button1: TButton
Left = 192
Top = 88
Width = 75
Height = 25
Caption = '接 收'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = '宋体'
Font.Style = []
ParentFont = False
TabOrder = 5
OnClick = Button1Click
end
object Button2: TButton
Left = 304
Top = 88
Width = 75
Height = 25
Caption = '停 止'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = '宋体'
Font.Style = []
ParentFont = False
TabOrder = 6
OnClick = Button2Click
end
object MSComm1: TMSComm
Left = 680
Top = 424
Width = 32
Height = 32
OnComm = MSComm1Comm
ControlData = {
2143341208000000ED030000ED03000001568A64000006000000010000040000
00020000B00400000200080000000000000000003F00000011000000}
end
object ProgressBar1: TProgressBar
Left = 192
Top = 400
Width = 361
Height = 18
Min = 0
Max = 100
TabOrder = 8
end
object BitBtn1: TBitBtn
Left = 592
Top = 240
Width = 75
Height = 25
Caption = '退 出'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = '宋体'
Font.Style = []
ParentFont = False
TabOrder = 9
OnClick = BitBtn1Click
end
object Button3: TButton
Left = 408
Top = 88
Width = 75
Height = 25
Caption = '清 空'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = '宋体'
Font.Style = []
ParentFont = False
TabOrder = 10
OnClick = Button3Click
end
object Timer1: TTimer
Enabled = False
Interval = 2000
OnTimer = Timer1Timer
Left = 648
Top = 424
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -