ghquery.dfm

来自「C++ Builder数据库开发经典案例解析 示例程序都是在C++ Build」· DFM 代码 · 共 129 行

DFM
129
字号
object fmQueryGH: TfmQueryGH
  Left = 192
  Top = 107
  Width = 454
  Height = 279
  Caption = #31185#23460#25346#21495#32479#35745
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  FormStyle = fsMDIChild
  OldCreateOrder = False
  Position = poDefault
  Visible = True
  OnClose = FormClose
  PixelsPerInch = 96
  TextHeight = 13
  object DBGrid1: TDBGrid
    Left = 0
    Top = 57
    Width = 446
    Height = 195
    Align = alClient
    DataSource = DataSource1
    TabOrder = 0
    TitleFont.Charset = DEFAULT_CHARSET
    TitleFont.Color = clWindowText
    TitleFont.Height = -11
    TitleFont.Name = 'MS Sans Serif'
    TitleFont.Style = []
    Columns = <
      item
        Expanded = False
        FieldName = #25346#21495#31185#23460
        Width = 133
        Visible = True
      end
      item
        Expanded = False
        FieldName = #20154#25968
        Visible = True
      end
      item
        Expanded = False
        FieldName = #37329#39069
        Width = 80
        Visible = True
      end>
  end
  object Panel1: TPanel
    Left = 0
    Top = 0
    Width = 446
    Height = 57
    Align = alTop
    TabOrder = 1
    object Label3: TLabel
      Left = 24
      Top = 22
      Width = 57
      Height = 13
      AutoSize = False
      Caption = #24320#22987#26102#38388
      Font.Charset = ANSI_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
    end
    object Label4: TLabel
      Left = 192
      Top = 22
      Width = 57
      Height = 13
      AutoSize = False
      Caption = #32467#26463#26102#38388
      Font.Charset = ANSI_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ParentFont = False
    end
    object Edit1: TEdit
      Left = 80
      Top = 18
      Width = 97
      Height = 21
      TabOrder = 0
      Text = 'Edit1'
    end
    object Edit2: TEdit
      Left = 248
      Top = 18
      Width = 89
      Height = 21
      TabOrder = 1
      Text = 'Edit2'
    end
    object Button1: TButton
      Left = 344
      Top = 16
      Width = 75
      Height = 25
      Caption = #25628#32034
      TabOrder = 2
      OnClick = Button1Click
    end
  end
  object Query1: TQuery
    Active = True
    DatabaseName = 'db'
    SQL.Strings = (
      
        'select '#25346#21495#31185#23460', count(*) as '#20154#25968', sum('#25346#21495#36153#29992') as '#37329#39069' from '#38376#35786#25346#21495' group by ' +
        #25346#21495#31185#23460)
    Left = 336
    Top = 80
  end
  object DataSource1: TDataSource
    DataSet = Query1
    Left = 368
    Top = 80
  end
end

⌨️ 快捷键说明

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