mainform.dfm

来自「著名的SecureBlackBox控件完整源码」· DFM 代码 · 共 273 行

DFM
273
字号
object Form1: TForm1
  Left = 406
  Top = 291
  Width = 490
  Height = 615
  Caption = 'Sftp Demo'
  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 GroupBox1: TGroupBox
    Left = 0
    Top = 0
    Width = 297
    Height = 153
    Caption = 'Connection properties'
    TabOrder = 0
    object Label1: TLabel
      Left = 16
      Top = 16
      Width = 22
      Height = 13
      Caption = 'Host'
    end
    object Label2: TLabel
      Left = 16
      Top = 56
      Width = 51
      Height = 13
      Caption = 'User name'
    end
    object Label3: TLabel
      Left = 160
      Top = 56
      Width = 46
      Height = 13
      Caption = 'Password'
    end
    object lbPrivateKey: TLabel
      Left = 16
      Top = 100
      Width = 239
      Height = 13
      Caption = 'Private key file for PUBLICKEY authentication type'
      FocusControl = edPrivateKey
    end
    object sbPrivateKey: TSpeedButton
      Left = 264
      Top = 116
      Width = 23
      Height = 23
      Caption = '...'
      OnClick = sbPrivateKeyClick
    end
    object editHost: TEdit
      Left = 16
      Top = 32
      Width = 129
      Height = 21
      TabOrder = 0
      Text = '192.168.0.1'
    end
    object editUserName: TEdit
      Left = 16
      Top = 72
      Width = 129
      Height = 21
      TabOrder = 1
    end
    object editPassword: TEdit
      Left = 160
      Top = 72
      Width = 121
      Height = 21
      PasswordChar = '*'
      TabOrder = 2
    end
    object edPrivateKey: TEdit
      Left = 16
      Top = 116
      Width = 241
      Height = 21
      TabOrder = 3
    end
  end
  object StringGrid1: TStringGrid
    Left = 0
    Top = 184
    Width = 481
    Height = 256
    Anchors = [akLeft, akTop, akRight, akBottom]
    ColCount = 3
    DefaultColWidth = 120
    DefaultRowHeight = 16
    FixedCols = 0
    RowCount = 4
    Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRangeSelect, goColSizing, goRowSelect]
    TabOrder = 1
    OnDblClick = StringGrid1DblClick
    OnMouseMove = StringGrid1MouseMove
  end
  object Memo1: TMemo
    Left = 0
    Top = 496
    Width = 482
    Height = 85
    Align = alBottom
    ReadOnly = True
    ScrollBars = ssVertical
    TabOrder = 2
  end
  object Button2: TButton
    Left = 0
    Top = 473
    Width = 75
    Height = 23
    Anchors = [akLeft, akBottom]
    Caption = 'MkDir'
    TabOrder = 3
    OnClick = Button2Click
  end
  object Button3: TButton
    Left = 80
    Top = 473
    Width = 75
    Height = 23
    Anchors = [akLeft, akBottom]
    Caption = 'Rename'
    TabOrder = 4
    OnClick = Button3Click
  end
  object Button4: TButton
    Left = 160
    Top = 473
    Width = 75
    Height = 23
    Anchors = [akLeft, akBottom]
    Caption = 'Delete'
    TabOrder = 5
    OnClick = Button4Click
  end
  object Button5: TButton
    Left = 240
    Top = 473
    Width = 75
    Height = 23
    Anchors = [akLeft, akBottom]
    Caption = 'Get File'
    TabOrder = 6
    OnClick = Button5Click
  end
  object Button6: TButton
    Left = 320
    Top = 473
    Width = 75
    Height = 23
    Anchors = [akLeft, akBottom]
    Caption = 'Put File'
    TabOrder = 7
    OnClick = Button6Click
  end
  object Edit4: TEdit
    Left = 0
    Top = 449
    Width = 481
    Height = 21
    Anchors = [akLeft, akRight, akBottom]
    ReadOnly = True
    TabOrder = 8
  end
  object EditPath: TEdit
    Left = 0
    Top = 160
    Width = 481
    Height = 21
    Anchors = [akLeft, akTop, akRight]
    ReadOnly = True
    TabOrder = 9
    Text = '.'
  end
  object btnUpdateFileInfo: TButton
    Left = 400
    Top = 473
    Width = 75
    Height = 23
    Anchors = [akLeft, akBottom]
    Caption = 'Update info'
    TabOrder = 10
    OnClick = btnUpdateFileInfoClick
  end
  object GroupBox2: TGroupBox
    Left = 304
    Top = 0
    Width = 129
    Height = 113
    Caption = 'Versions'
    TabOrder = 11
    object CheckBoxV3: TCheckBox
      Left = 24
      Top = 48
      Width = 81
      Height = 17
      Caption = 'SFTPv3'
      Checked = True
      State = cbChecked
      TabOrder = 0
    end
    object CheckBoxV4: TCheckBox
      Left = 24
      Top = 72
      Width = 73
      Height = 17
      Caption = 'SFTPv4'
      Checked = True
      State = cbChecked
      TabOrder = 1
    end
    object CheckBoxV2: TCheckBox
      Left = 24
      Top = 24
      Width = 81
      Height = 17
      Caption = 'SFTPv2'
      Checked = True
      State = cbChecked
      TabOrder = 2
    end
  end
  object btnConnect: TButton
    Left = 304
    Top = 120
    Width = 121
    Height = 25
    Caption = 'Connect'
    Default = True
    TabOrder = 12
    OnClick = btnConnectClick
  end
  object scktClient: TClientSocket
    Active = False
    ClientType = ctNonBlocking
    Port = 0
    OnConnect = scktClientConnect
    OnDisconnect = scktClientDisconnect
    OnRead = scktClientRead
    Left = 160
    Top = 72
  end
  object SaveDialog1: TSaveDialog
    InitialDir = '.'
    Left = 240
    Top = 72
  end
  object OpenDialog1: TOpenDialog
    InitialDir = '.'
    Left = 272
    Top = 72
  end
  object OpenDialog: TOpenDialog
    InitialDir = '.'
    Title = 'Specify file with private key'
    Left = 248
    Top = 16
  end
end

⌨️ 快捷键说明

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