unit1.dfm

来自「本程序实现了串行端口的输入检测功能。采用getcommmodemstatus函数」· DFM 代码 · 共 155 行

DFM
155
字号
object Form1: TForm1
  Left = 192
  Top = 107
  Width = 464
  Height = 303
  Caption = 'RS-232 Digital Input'
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = False
  PixelsPerInch = 96
  TextHeight = 13
  object spCD: TShape
    Left = 48
    Top = 176
    Width = 57
    Height = 49
    Shape = stCircle
  end
  object spDSR: TShape
    Left = 136
    Top = 176
    Width = 57
    Height = 49
    Shape = stCircle
  end
  object spCTS: TShape
    Left = 224
    Top = 176
    Width = 57
    Height = 49
    Shape = stCircle
  end
  object spRI: TShape
    Left = 312
    Top = 176
    Width = 57
    Height = 49
    Shape = stCircle
  end
  object RI: TLabel
    Left = 64
    Top = 144
    Width = 33
    Height = 25
    AutoSize = False
    Caption = 'CD'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -16
    Font.Name = 'MS Sans Serif'
    Font.Style = []
    ParentFont = False
  end
  object Label1: TLabel
    Left = 144
    Top = 144
    Width = 49
    Height = 25
    AutoSize = False
    Caption = 'DSR'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -16
    Font.Name = 'MS Sans Serif'
    Font.Style = []
    ParentFont = False
  end
  object Label2: TLabel
    Left = 240
    Top = 144
    Width = 33
    Height = 25
    AutoSize = False
    Caption = 'CTS'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -16
    Font.Name = 'MS Sans Serif'
    Font.Style = []
    ParentFont = False
  end
  object Label3: TLabel
    Left = 328
    Top = 144
    Width = 33
    Height = 25
    AutoSize = False
    Caption = 'RI'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -16
    Font.Name = 'MS Sans Serif'
    Font.Style = []
    ParentFont = False
  end
  object rdCOM: TRadioGroup
    Left = 40
    Top = 8
    Width = 113
    Height = 81
    Caption = '选择通信端口'
    Font.Charset = GB2312_CHARSET
    Font.Color = clBlue
    Font.Height = -16
    Font.Name = '宋体'
    Font.Style = []
    ItemIndex = 0
    Items.Strings = (
      'COM1'
      'COM2')
    ParentFont = False
    TabOrder = 0
  end
  object Button1: TButton
    Left = 176
    Top = 24
    Width = 113
    Height = 41
    Caption = '打开通信端口'
    Font.Charset = GB2312_CHARSET
    Font.Color = clBlue
    Font.Height = -16
    Font.Name = '宋体'
    Font.Style = []
    ParentFont = False
    TabOrder = 1
    OnClick = Button1Click
  end
  object Button2: TButton
    Left = 328
    Top = 24
    Width = 113
    Height = 41
    Caption = '结束系统'
    Font.Charset = GB2312_CHARSET
    Font.Color = clBlue
    Font.Height = -16
    Font.Name = '宋体'
    Font.Style = []
    ParentFont = False
    TabOrder = 2
    OnClick = Button2Click
  end
  object Timer1: TTimer
    Interval = 100
    OnTimer = Timer1Timer
    Left = 400
    Top = 112
  end
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?