⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unit1.dfm

📁 WAPI串口编程示例,用复杂的api函数,实现的串口功能更为强大.
💻 DFM
字号:
object Form1: TForm1
  Left = 220
  Top = 179
  Width = 654
  Height = 423
  Caption = 'Win32API '#20018#21475#32534#31243
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = False
  OnCreate = FormCreate
  PixelsPerInch = 96
  TextHeight = 13
  object Label1: TLabel
    Left = 192
    Top = 296
    Width = 34
    Height = 13
    Caption = #21457#36865'  '
  end
  object SpeedButton1: TSpeedButton
    Left = 8
    Top = 280
    Width = 49
    Height = 25
    Caption = #28165#31354
    Layout = blGlyphTop
    OnClick = SpeedButton1Click
  end
  object Label2: TLabel
    Left = 128
    Top = 312
    Width = 15
    Height = 13
    Caption = 'mS'
  end
  object StatusBar1: TStatusBar
    Left = 0
    Top = 370
    Width = 646
    Height = 19
    Panels = <>
  end
  object Memo1: TMemo
    Left = 184
    Top = 320
    Width = 273
    Height = 25
    ImeName = #32043#20809#25340#38899#36755#20837#27861
    TabOrder = 1
  end
  object Memo2: TMemo
    Left = 0
    Top = 8
    Width = 337
    Height = 273
    ImeName = #32043#20809#25340#38899#36755#20837#27861
    ScrollBars = ssVertical
    TabOrder = 2
  end
  object GroupBox1: TGroupBox
    Left = 352
    Top = 32
    Width = 177
    Height = 185
    Caption = #22522#26412#35774#32622
    TabOrder = 3
    object Label3: TLabel
      Left = 7
      Top = 24
      Width = 48
      Height = 13
      Caption = #31471#21475#21495'  '
    end
    object Label4: TLabel
      Left = 9
      Top = 56
      Width = 48
      Height = 13
      Caption = #27874#29305#29575'  '
    end
    object Label5: TLabel
      Left = 9
      Top = 88
      Width = 48
      Height = 13
      Caption = #25968#25454#20301'  '
    end
    object Label6: TLabel
      Left = 9
      Top = 120
      Width = 34
      Height = 13
      Caption = #26657#39564'  '
    end
    object Label7: TLabel
      Left = 9
      Top = 152
      Width = 48
      Height = 13
      Caption = #20572#27490#20301'  '
    end
    object ComboBox4: TComboBox
      Left = 64
      Top = 120
      Width = 105
      Height = 21
      ImeName = #32043#20809#25340#38899#36755#20837#27861
      ItemHeight = 13
      TabOrder = 0
      Items.Strings = (
        'EVENPARITY'
        'NOPARITY'
        'MARKPARITY'
        'ODDPARITY'
        'SPACEPARITY')
    end
    object ComboBox3: TComboBox
      Left = 64
      Top = 88
      Width = 105
      Height = 21
      ImeName = #32043#20809#25340#38899#36755#20837#27861
      ItemHeight = 13
      TabOrder = 1
      Items.Strings = (
        '4'
        '5'
        '6'
        '7'
        '8')
    end
    object ComboBox2: TComboBox
      Left = 64
      Top = 56
      Width = 105
      Height = 21
      ImeName = #32043#20809#25340#38899#36755#20837#27861
      ItemHeight = 13
      TabOrder = 2
      Items.Strings = (
        '2400'
        '4800'
        '9600'
        '19200'
        '38400'
        '57600'
        '115200')
    end
    object ComboBox1: TComboBox
      Left = 64
      Top = 24
      Width = 105
      Height = 21
      ImeName = #32043#20809#25340#38899#36755#20837#27861
      ItemHeight = 13
      TabOrder = 3
      Items.Strings = (
        'COM1'
        'COM2')
    end
    object ComboBox5: TComboBox
      Left = 64
      Top = 152
      Width = 105
      Height = 21
      ImeName = #32043#20809#25340#38899#36755#20837#27861
      ItemHeight = 13
      TabOrder = 4
      Items.Strings = (
        'ONESTOPBIT'
        'ONE5STOPBITS'
        'TWOSTOPBITS')
    end
  end
  object btnOpenCom: TButton
    Left = 360
    Top = 240
    Width = 75
    Height = 33
    Caption = #25171#24320#20018#21475' '
    TabOrder = 4
    OnClick = btnOpenComClick
  end
  object btnSendData: TButton
    Left = 464
    Top = 312
    Width = 75
    Height = 33
    Caption = #21457#36865#25968#25454
    Default = True
    TabOrder = 5
    OnClick = btnSendDataClick
  end
  object btnReceiveData: TButton
    Left = 544
    Top = 96
    Width = 97
    Height = 25
    Caption = #33258#21160#25509#25910#25968#25454
    TabOrder = 6
    OnClick = btnReceiveDataClick
  end
  object btnCloseCom: TButton
    Left = 448
    Top = 240
    Width = 75
    Height = 33
    Caption = #20851#38381#20018#21475
    TabOrder = 7
    OnClick = btnCloseComClick
  end
  object Button1: TButton
    Left = 552
    Top = 256
    Width = 81
    Height = 25
    Caption = #21457#36865
    TabOrder = 8
    OnClick = Button1Click
  end
  object Button2: TButton
    Left = 552
    Top = 216
    Width = 81
    Height = 25
    Caption = #38271#24230
    TabOrder = 9
    OnClick = Button2Click
  end
  object Button3: TButton
    Left = 544
    Top = 16
    Width = 97
    Height = 25
    Caption = #33258#21160#23547#25214#20018#21475
    TabOrder = 10
    OnClick = Button3Click
  end
  object Button4: TButton
    Left = 552
    Top = 56
    Width = 81
    Height = 25
    Caption = #35835#20018#21475#25968#25454
    TabOrder = 11
    OnClick = Button4Click
  end
  object Button5: TButton
    Left = 552
    Top = 136
    Width = 73
    Height = 25
    Caption = #21160#24577#25968#32452
    TabOrder = 12
    OnClick = Button5Click
  end
  object Button6: TButton
    Left = 552
    Top = 312
    Width = 89
    Height = 33
    Caption = #21457'06H'
    TabOrder = 13
    OnClick = Button6Click
  end
  object Button7: TButton
    Left = 552
    Top = 176
    Width = 81
    Height = 25
    Caption = 'Button7'
    TabOrder = 14
  end
  object Button8: TButton
    Left = 8
    Top = 312
    Width = 65
    Height = 25
    Caption = #23450#26102#21457#36865
    TabOrder = 15
    OnClick = Button8Click
  end
  object Button9: TButton
    Left = 8
    Top = 344
    Width = 65
    Height = 25
    Caption = #20572#27490#21457#36865
    TabOrder = 16
    OnClick = Button9Click
  end
  object Edit1: TEdit
    Left = 80
    Top = 312
    Width = 41
    Height = 21
    TabOrder = 17
    Text = '200'
  end
  object Timer1: TTimer
    Enabled = False
    OnTimer = Timer1Timer
    Left = 496
  end
end

⌨️ 快捷键说明

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