📄 main.dfm
字号:
object MainForm: TMainForm
Left = 327
Top = 152
Width = 289
Height = 498
BorderIcons = [biSystemMenu, biMinimize]
Caption = 'DIO_SOFT_PORTS'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
OnCreate = FormCreate
OnDestroy = FormDestroy
PixelsPerInch = 96
TextHeight = 13
object Group_Device: TGroupBox
Left = 8
Top = 8
Width = 265
Height = 113
Caption = 'Device Setting: '
TabOrder = 0
object Label1: TLabel
Left = 19
Top = 24
Width = 40
Height = 13
Caption = 'Device: '
end
object Label2: TLabel
Left = 11
Top = 56
Width = 49
Height = 13
Caption = 'DO Ports: '
end
object Label3: TLabel
Left = 15
Top = 80
Width = 44
Height = 13
Caption = 'DI Ports: '
end
object CmbDevList: TComboBox
Left = 65
Top = 21
Width = 193
Height = 21
ItemHeight = 13
TabOrder = 0
end
object DOPorts: TEdit
Left = 64
Top = 53
Width = 73
Height = 21
Color = clMenuBar
ReadOnly = True
TabOrder = 1
end
object DIPorts: TEdit
Left = 64
Top = 80
Width = 73
Height = 21
Color = clMenuBar
TabOrder = 2
end
object BtnOpenDev: TButton
Left = 183
Top = 56
Width = 73
Height = 33
Caption = 'Open Device'
TabOrder = 3
OnClick = BtnOpenDevClick
end
end
object Group_Read: TGroupBox
Left = 8
Top = 128
Width = 265
Height = 109
Caption = 'ReadPorts: '
TabOrder = 1
object Label4: TLabel
Left = 13
Top = 24
Width = 50
Height = 13
Caption = 'Start Port: '
end
object Label5: TLabel
Left = 2
Top = 50
Width = 61
Height = 13
Caption = 'Ports Count: '
end
object Label6: TLabel
Left = 20
Top = 75
Width = 43
Height = 13
Caption = 'DI Data: '
end
object Label7: TLabel
Left = 239
Top = 75
Width = 19
Height = 13
Caption = 'Hex'
end
object Label16: TLabel
Left = 67
Top = 93
Width = 162
Height = 13
Caption = 'Start ----------------------> Start + Count'
end
object DIData: TEdit
Left = 64
Top = 72
Width = 169
Height = 21
Color = clMenuBar
ReadOnly = True
TabOrder = 0
end
object BtnRead: TButton
Left = 184
Top = 24
Width = 73
Height = 33
Caption = 'Read'
Enabled = False
TabOrder = 1
OnClick = BtnReadClick
end
object DIPortStart: TEdit
Left = 64
Top = 20
Width = 73
Height = 21
TabOrder = 2
Text = '0'
end
object DIPortCnt: TEdit
Left = 64
Top = 46
Width = 73
Height = 21
TabOrder = 3
Text = '1'
end
end
object Group_Write: TGroupBox
Left = 8
Top = 240
Width = 265
Height = 108
Caption = 'Write Ports: '
TabOrder = 2
object Label8: TLabel
Left = 13
Top = 24
Width = 50
Height = 13
Caption = 'Start Port: '
end
object Label9: TLabel
Left = 2
Top = 50
Width = 61
Height = 13
Caption = 'Ports Count: '
end
object Label10: TLabel
Left = 14
Top = 75
Width = 48
Height = 13
Caption = 'DO Data: '
end
object Label11: TLabel
Left = 239
Top = 75
Width = 19
Height = 13
Caption = 'Hex'
end
object Label17: TLabel
Left = 67
Top = 93
Width = 162
Height = 13
Caption = 'Start ----------------------> Start + Count'
end
object DOPortStart: TEdit
Left = 64
Top = 20
Width = 73
Height = 21
TabOrder = 0
Text = '0'
end
object DOPortCnt: TEdit
Left = 64
Top = 46
Width = 73
Height = 21
TabOrder = 1
Text = '1'
end
object DOData: TEdit
Left = 64
Top = 72
Width = 169
Height = 21
Color = clWhite
TabOrder = 2
Text = 'aa'
end
object BtnWrite: TButton
Left = 184
Top = 24
Width = 73
Height = 33
Caption = 'Write'
Enabled = False
TabOrder = 3
OnClick = BtnWriteClick
end
end
object Group_State: TGroupBox
Left = 8
Top = 352
Width = 265
Height = 108
Caption = 'DO Ports State: '
TabOrder = 3
object Label12: TLabel
Left = 13
Top = 24
Width = 50
Height = 13
Caption = 'Start Port: '
end
object Label13: TLabel
Left = 2
Top = 50
Width = 61
Height = 13
Caption = 'Ports Count: '
end
object Label14: TLabel
Left = 12
Top = 75
Width = 50
Height = 13
Caption = 'DO State: '
end
object Label15: TLabel
Left = 239
Top = 75
Width = 19
Height = 13
Caption = 'Hex'
end
object Label18: TLabel
Left = 67
Top = 92
Width = 162
Height = 13
Caption = 'Start ----------------------> Start + Count'
end
object DOSPortStart: TEdit
Left = 64
Top = 20
Width = 73
Height = 21
TabOrder = 0
Text = '0'
end
object DOSPortCnt: TEdit
Left = 64
Top = 46
Width = 73
Height = 21
TabOrder = 1
Text = '1'
end
object DOSData: TEdit
Left = 64
Top = 72
Width = 169
Height = 21
Color = clMenuBar
ReadOnly = True
TabOrder = 2
end
object BtnDOState: TButton
Left = 184
Top = 24
Width = 73
Height = 33
Caption = 'Get DO State'
Enabled = False
TabOrder = 3
OnClick = BtnDOStateClick
end
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -