serverc.dfm

来自「一个用于delphi多线程Socket.多线程Socket阻塞模式下通信的例子」· DFM 代码 · 共 70 行

DFM
70
字号
object ServerFrm: TServerFrm
  Left = 354
  Top = 140
  BorderIcons = [biSystemMenu, biMinimize]
  BorderStyle = bsSingle
  Caption = '多線程Socket服務器端'
  ClientHeight = 332
  ClientWidth = 286
  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 Label1: TLabel
    Left = 5
    Top = 308
    Width = 78
    Height = 12
    Caption = '当前连接数:0'
    Font.Charset = ANSI_CHARSET
    Font.Color = clWindowText
    Font.Height = -12
    Font.Name = '宋体'
    Font.Style = []
    ParentFont = False
  end
  object Button1: TButton
    Left = 192
    Top = 304
    Width = 89
    Height = 25
    Caption = '关闭所有连接'
    Font.Charset = ANSI_CHARSET
    Font.Color = clWindowText
    Font.Height = -12
    Font.Name = '宋体'
    Font.Style = []
    ParentFont = False
    TabOrder = 0
    OnClick = Button1Click
  end
  object Memo1: TMemo
    Left = 0
    Top = 0
    Width = 286
    Height = 297
    Font.Charset = ANSI_CHARSET
    Font.Color = clWindowText
    Font.Height = -12
    Font.Name = '宋体'
    Font.Style = []
    Lines.Strings = (
      '沒有用戶連接....')
    ParentFont = False
    TabOrder = 1
  end
  object ServerSocket1: TServerSocket
    Active = True
    Port = 1220
    ServerType = stThreadBlocking
    OnGetThread = ServerSocket1GetThread
    Left = 32
    Top = 56
  end
end

⌨️ 快捷键说明

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