有没有大神能够逐行解释一下代码?Delphi

来源:互联网 发布:mac dmg驱动装不上 编辑:程序博客网 时间:2024/05/29 18:59
object Form4: TForm4
  Left = 229
  Top = 392
  Width = 600
  Height = 500
  Caption = #35835#32773#31649#29702
  Color = clBtnFace
  Constraints.MaxHeight = 500
  Constraints.MaxWidth = 600
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = False
  OnClose = FormClose
  PixelsPerInch = 96
  TextHeight = 13
  object PageControl1: TPageControl
    Left = 0
    Top = 0
    Width = 592
    Height = 466
    ActivePage = TabSheet3
    Align = alClient
    Style = tsFlatButtons
    TabOrder = 0
    object TabSheet1: TTabSheet
      Caption = #28155#21152#35835#32773
      OnShow = TabSheet1Show
      object GroupBox1: TGroupBox
        Left = 0
        Top = 0
        Width = 584
        Height = 435
        Align = alClient
        TabOrder = 0
        object Panel1: TPanel
          Left = 2
          Top = 15
          Width = 335
          Height = 418
          Align = alLeft
          TabOrder = 0
          object DBGrid1: TDBGrid
            Left = 1
            Top = 1
            Width = 333
            Height = 416
            Align = alClient
            DataSource = DataSource1
            ReadOnly = True
            TabOrder = 0
            TitleFont.Charset = DEFAULT_CHARSET
            TitleFont.Color = clWindowText
            TitleFont.Height = -11
            TitleFont.Name = 'MS Sans Serif'
            TitleFont.Style = []
            Columns = <
              item
                Expanded = False
                FieldName = 'ReaderID'
                Width = 79
                Visible = True
              end
              item
                Expanded = False
                FieldName = 'Name'
                Width = 78
                Visible = True
              end
              item
                Expanded = False
                FieldName = 'Sex'
                Width = 66
                Visible = True
              end
              item
                Expanded = False
                FieldName = 'PersonID'
                Visible = True
              end>
          end
        end
        object Panel2: TPanel
          Left = 337
          Top = 15
          Width = 245
          Height = 418
          Align = alRight
          Color = clActiveCaption
          TabOrder = 1
          object Label1: TLabel
            Left = 13
            Top = 32
            Width = 68
            Height = 16
            Caption = #35835#32773#32534#21495':'
            Font.Charset = ANSI_CHARSET
            Font.Color = clSilver
            Font.Height = -13
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object Label2: TLabel
            Left = 13
            Top = 69
            Width = 68
            Height = 16
            Caption = #35835#32773#22995#21517':'
            Font.Charset = ANSI_CHARSET
            Font.Color = clSilver
            Font.Height = -13
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object Label3: TLabel
            Left = 13
            Top = 106
            Width = 68
            Height = 16
            Caption = #35835#32773#24615#21035':'
            Font.Charset = ANSI_CHARSET
            Font.Color = clSilver
            Font.Height = -13
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object Label4: TLabel
            Left = 13
            Top = 144
            Width = 68
            Height = 16
            Caption = #36523#20221#35777#21495':'
            Font.Charset = ANSI_CHARSET
            Font.Color = clSilver
            Font.Height = -13
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object Edit1: TEdit
            Left = 93
            Top = 30
            Width = 130
            Height = 21
            TabOrder = 0
          end
          object Edit2: TEdit
            Left = 93
            Top = 67
            Width = 130
            Height = 21
            TabOrder = 1
          end
          object Edit4: TEdit
            Left = 93
            Top = 142
            Width = 130
            Height = 21
            MaxLength = 18
            TabOrder = 2
          end
          object Button1: TButton
            Left = 8
            Top = 191
            Width = 70
            Height = 23
            Caption = #28155#21152
            TabOrder = 3
            OnClick = Button1Click
          end
          object Button2: TButton
            Left = 84
            Top = 191
            Width = 70
            Height = 23
            Caption = #21462#28040
            TabOrder = 4
            OnClick = Button2Click
          end
          object Button3: TButton
            Left = 160
            Top = 191
            Width = 70
            Height = 23
            Caption = #36820#22238
            TabOrder = 5
            OnClick = Button3Click
          end
          object ComboBox2: TComboBox
            Left = 93
            Top = 108
            Width = 129
            Height = 21
            ItemHeight = 13
            TabOrder = 6
            Items.Strings = (
              #30007
              #22899)
          end
        end
      end
    end
    object TabSheet2: TTabSheet
      Caption = #21024#38500#35835#32773
      ImageIndex = 1
      OnShow = TabSheet2Show
      object GroupBox2: TGroupBox
        Left = 0
        Top = 0
        Width = 584
        Height = 435
        Align = alClient
        TabOrder = 0
        object Panel3: TPanel
          Left = 2
          Top = 15
          Width = 333
          Height = 418
          Align = alLeft
          TabOrder = 0
          object DBGrid2: TDBGrid
            Left = 1
            Top = 1
            Width = 331
            Height = 416
            Align = alClient
            DataSource = DataSource1
            ReadOnly = True
            TabOrder = 0
            TitleFont.Charset = DEFAULT_CHARSET
            TitleFont.Color = clWindowText
            TitleFont.Height = -11
            TitleFont.Name = 'MS Sans Serif'
            TitleFont.Style = []
            OnCellClick = DBGrid2CellClick
          end
        end
        object Panel4: TPanel
          Left = 337
          Top = 15
          Width = 245
          Height = 418
          Align = alRight
          Color = clActiveCaption
          TabOrder = 1
          object Label5: TLabel
            Left = 12
            Top = 32
            Width = 68
            Height = 16
            Caption = #35835#32773#32534#21495':'
            Font.Charset = ANSI_CHARSET
            Font.Color = clSilver
            Font.Height = -13
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object Label6: TLabel
            Left = 12
            Top = 74
            Width = 68
            Height = 16
            Caption = #35835#32773#22995#21517':'
            Font.Charset = ANSI_CHARSET
            Font.Color = clSilver
            Font.Height = -13
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object Label7: TLabel
            Left = 12
            Top = 117
            Width = 68
            Height = 16
            Caption = #35835#32773#24615#21035':'
            Font.Charset = ANSI_CHARSET
            Font.Color = clSilver
            Font.Height = -13
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object Label8: TLabel
            Left = 12
            Top = 160
            Width = 68
            Height = 16
            Caption = #36523#20221#35777#21495':'
            Font.Charset = ANSI_CHARSET
            Font.Color = clSilver
            Font.Height = -13
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object Edit5: TEdit
            Left = 87
            Top = 31
            Width = 130
            Height = 21
            TabOrder = 0
          end
          object Edit6: TEdit
            Left = 87
            Top = 73
            Width = 130
            Height = 21
            TabOrder = 1
          end
          object Edit8: TEdit
            Left = 87
            Top = 159
            Width = 130
            Height = 21
            TabOrder = 2
          end
          object Button4: TButton
            Left = 8
            Top = 216
            Width = 70
            Height = 23
            Caption = #21024#38500
            TabOrder = 3
            OnClick = Button4Click
          end
          object Button5: TButton
            Left = 88
            Top = 216
            Width = 70
            Height = 23
            Caption = #21462#28040
            TabOrder = 4
            OnClick = Button5Click
          end
          object Button6: TButton
            Left = 168
            Top = 216
            Width = 70
            Height = 23
            Caption = #36820#22238
            TabOrder = 5
            OnClick = Button6Click
          end
          object ComboBox3: TComboBox
            Left = 88
            Top = 116
            Width = 129
            Height = 21
            ItemHeight = 13
            TabOrder = 6
          end
        end
      end
    end
    object TabSheet3: TTabSheet
      Caption = #20462#25913#35835#32773#20449#24687
      ImageIndex = 2
      object GroupBox3: TGroupBox
        Left = 0
        Top = 0
        Width = 584
        Height = 435
        Align = alClient
        TabOrder = 0
        object Panel5: TPanel
          Left = 2
          Top = 15
          Width = 333
          Height = 418
          Align = alLeft
          TabOrder = 0
          object DBGrid3: TDBGrid
            Left = 1
            Top = 1
            Width = 331
            Height = 416
            Align = alClient
            DataSource = DataSource1
            ReadOnly = True
            TabOrder = 0
            TitleFont.Charset = DEFAULT_CHARSET
            TitleFont.Color = clWindowText
            TitleFont.Height = -11
            TitleFont.Name = 'MS Sans Serif'
            TitleFont.Style = []
            OnCellClick = DBGrid3CellClick
          end
        end
        object Panel6: TPanel
          Left = 337
          Top = 15
          Width = 245
          Height = 418
          Align = alRight
          Color = clActiveCaption
          TabOrder = 1
          object Label9: TLabel
            Left = 7
            Top = 32
            Width = 68
            Height = 16
            Caption = #35835#32773#32534#21495':'
            Font.Charset = ANSI_CHARSET
            Font.Color = clSilver
            Font.Height = -13
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object Label10: TLabel
            Left = 7
            Top = 77
            Width = 68
            Height = 16
            Caption = #35835#32773#22995#21517':'
            Font.Charset = ANSI_CHARSET
            Font.Color = clSilver
            Font.Height = -13
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object Label11: TLabel
            Left = 7
            Top = 122
            Width = 68
            Height = 16
            Caption = #35835#32773#24615#21035':'
            Font.Charset = ANSI_CHARSET
            Font.Color = clSilver
            Font.Height = -13
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object Label12: TLabel
            Left = 7
            Top = 168
            Width = 68
            Height = 16
            Caption = #36523#20221#35777#21495':'
            Font.Charset = ANSI_CHARSET
            Font.Color = clSilver
            Font.Height = -13
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object Edit9: TEdit
            Left = 81
            Top = 26
            Width = 130
            Height = 21
            TabOrder = 0
          end
          object Edit10: TEdit
            Left = 81
            Top = 74
            Width = 130
            Height = 21
            TabOrder = 1
          end
          object Edit12: TEdit
            Left = 81
            Top = 170
            Width = 130
            Height = 21
            TabOrder = 2
          end
          object ComboBox1: TComboBox
            Left = 81
            Top = 122
            Width = 129
            Height = 21
            ItemHeight = 13
            TabOrder = 3
            Items.Strings = (
              #30007
              #22899)
          end
          object Button7: TButton
            Left = 8
            Top = 224
            Width = 70
            Height = 23
            Caption = #20462#25913
            TabOrder = 4
            OnClick = Button7Click
          end
          object Button8: TButton
            Left = 88
            Top = 224
            Width = 70
            Height = 23
            Caption = #21462#28040
            TabOrder = 5
            OnClick = Button8Click
          end
          object Button9: TButton
            Left = 168
            Top = 224
            Width = 70
            Height = 23
            Caption = #36820#22238
            TabOrder = 6
            OnClick = Button9Click
          end
        end
      end
    end
  end
  object ADOQuery1: TADOQuery
    ConnectionString = 
      'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=..\Data\BookManege.' +
      'mdb;Persist Security Info=False'
    CursorType = ctStatic
    Parameters = <>
    SQL.Strings = (
      'select * from Reader')
    Left = 229
    Top = 129
  end
  object DataSource1: TDataSource
    DataSet = ADOQuery1
    Left = 197
    Top = 177
  end
end
阅读全文
0 0
原创粉丝点击