unit1.dfm

来自「sample how to use TClientSocket & TServe」· DFM 代码 · 共 118 行

DFM
118
字号
object Form1: TForm1
  Left = 192
  Top = 107
  Width = 353
  Height = 232
  Caption = 'client ..'
  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 GroupBox1: TGroupBox
    Left = 8
    Top = 8
    Width = 321
    Height = 73
    Caption = 'server'
    TabOrder = 0
    object Label1: TLabel
      Left = 10
      Top = 21
      Width = 20
      Height = 13
      Caption = 'host'
    end
    object Label2: TLabel
      Left = 10
      Top = 45
      Width = 18
      Height = 13
      Caption = 'port'
    end
    object Edit1: TEdit
      Left = 40
      Top = 16
      Width = 121
      Height = 21
      TabOrder = 0
      Text = 'localhost'
    end
    object Edit2: TEdit
      Left = 40
      Top = 40
      Width = 121
      Height = 21
      TabOrder = 1
      Text = '7070'
    end
    object Button4: TButton
      Left = 182
      Top = 24
      Width = 75
      Height = 25
      Caption = 'connect'
      TabOrder = 2
      OnClick = Button4Click
    end
  end
  object GroupBox2: TGroupBox
    Left = 8
    Top = 88
    Width = 321
    Height = 105
    Caption = 'contoh remote server'
    TabOrder = 1
    object Edit3: TEdit
      Left = 8
      Top = 20
      Width = 223
      Height = 21
      TabOrder = 0
      Text = 'contoh pesan client yg dikirim ke server...'
    end
    object Button2: TButton
      Left = 240
      Top = 20
      Width = 65
      Height = 25
      Caption = 'kirim pesan'
      TabOrder = 1
      OnClick = Button2Click
    end
    object Button3: TButton
      Left = 176
      Top = 56
      Width = 121
      Height = 25
      Caption = 'tutup server'
      TabOrder = 2
      OnClick = Button3Click
    end
    object Button1: TButton
      Left = 16
      Top = 56
      Width = 121
      Height = 25
      Caption = 'jalankan notepad'
      TabOrder = 3
      OnClick = Button1Click
    end
  end
  object cs: TClientSocket
    Active = False
    ClientType = ctNonBlocking
    Port = 0
    OnConnect = csConnect
    OnDisconnect = csDisconnect
    OnError = csError
    Left = 56
    Top = 88
  end
end

⌨️ 快捷键说明

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