unit1.~dfm

来自「这是《Delphi程序设计基础》由李文池写的书的示例代码」· ~DFM 代码 · 共 127 行

~DFM
127
字号
object Form1: TForm1
  Left = 192
  Top = 114
  Width = 565
  Height = 370
  Caption = 'Form1'
  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 = 56
    Top = 232
    Width = 71
    Height = 13
    Caption = #35831#36755#20837'CustNo'
  end
  object Label2: TLabel
    Left = 56
    Top = 272
    Width = 49
    Height = 13
    Caption = #30005#35805
  end
  object Label3: TLabel
    Left = 56
    Top = 304
    Width = 49
    Height = 13
    Caption = #32852#31995#20154
  end
  object Button1: TButton
    Left = 280
    Top = 232
    Width = 73
    Height = 25
    Caption = #26597#35810
    TabOrder = 0
    OnClick = Button1Click
  end
  object DBGrid1: TDBGrid
    Left = 0
    Top = 0
    Width = 553
    Height = 217
    DataSource = DataSource1
    TabOrder = 1
    TitleFont.Charset = DEFAULT_CHARSET
    TitleFont.Color = clWindowText
    TitleFont.Height = -11
    TitleFont.Name = 'MS Sans Serif'
    TitleFont.Style = []
    Columns = <
      item
        Expanded = False
        FieldName = 'CustNo'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'Company'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'Phone'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'Contact'
        Visible = True
      end>
  end
  object Edit1: TEdit
    Left = 152
    Top = 232
    Width = 105
    Height = 21
    TabOrder = 2
  end
  object Button2: TButton
    Left = 280
    Top = 304
    Width = 75
    Height = 25
    Caption = #20462#25913
    TabOrder = 3
    OnClick = Button2Click
  end
  object Edit2: TEdit
    Left = 152
    Top = 272
    Width = 105
    Height = 21
    TabOrder = 4
  end
  object Edit3: TEdit
    Left = 152
    Top = 304
    Width = 105
    Height = 21
    TabOrder = 5
  end
  object ADOTable1: TADOTable
    Active = True
    ConnectionString = 
      'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Co' +
      'mmon Files\Borland Shared\Data\dbdemos.mdb;Persist Security Info' +
      '=False'
    CursorType = ctStatic
    TableName = 'customer'
    Left = 440
    Top = 240
  end
  object DataSource1: TDataSource
    DataSet = ADOTable1
    Left = 480
    Top = 240
  end
end

⌨️ 快捷键说明

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