⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.dfm

📁 MYSQL 连接控件 MYSQL 连接控件
💻 DFM
字号:
object frmMain: TfrmMain
  Left = 390
  Top = 119
  Width = 600
  Height = 617
  HorzScrollBar.Range = 310
  VertScrollBar.Range = 584
  BorderStyle = bsDialog
  Caption = 'Getting started with the MyComponents suite'
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = True
  Position = poScreenCenter
  PixelsPerInch = 96
  TextHeight = 13
  object Label1: TLabel
    Left = 8
    Top = 47
    Width = 242
    Height = 13
    Caption = 'Step 1:  Connecting to your MySQL Server'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clBlack
    Font.Height = 11
    Font.Name = 'MS Sans Serif'
    Font.Pitch = fpVariable
    Font.Style = [fsBold]
    ParentFont = False
  end
  object Label2: TLabel
    Left = 8
    Top = 71
    Width = 197
    Height = 13
    Caption = 'Step 2:  Create a sample database'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clBlack
    Font.Height = 11
    Font.Name = 'MS Sans Serif'
    Font.Pitch = fpVariable
    Font.Style = [fsBold]
    ParentFont = False
  end
  object Label3: TLabel
    Left = 8
    Top = 95
    Width = 303
    Height = 13
    Caption = 'Step 3:  Populate your database with tables and data'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clBlack
    Font.Height = 11
    Font.Name = 'MS Sans Serif'
    Font.Pitch = fpVariable
    Font.Style = [fsBold]
    ParentFont = False
  end
  object Version: TLabel
    Left = 464
    Top = 47
    Width = 69
    Height = 13
    Caption = 'Server Version'
  end
  object DBName: TLabel
    Left = 464
    Top = 71
    Width = 46
    Height = 13
    Caption = 'Database'
  end
  object Panel1: TPanel
    Left = 0
    Top = 0
    Width = 575
    Height = 41
    Align = alTop
    Caption = 
      'Just follow the steps and instructions, it really is as easy as ' +
      '1, 2 ,3 '
    Color = clWhite
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clBlack
    Font.Height = 16
    Font.Name = 'MS Shell Dlg'
    Font.Pitch = fpVariable
    Font.Style = [fsBold, fsItalic]
    ParentFont = False
    TabOrder = 0
  end
  object DBNavigator1: TDBNavigator
    Left = 0
    Top = 235
    Width = 575
    Height = 18
    DataSource = DataSource1
    Align = alBottom
    Flat = True
    ParentShowHint = False
    ShowHint = True
    TabOrder = 1
  end
  object DBGrid1: TDBGrid
    Left = 0
    Top = 115
    Width = 575
    Height = 120
    Hint = 
      'This table has two VARCHAR fields, AccountID can'#39't be edited bec' +
      'ause it is an AUTOINC column'
    Align = alBottom
    BorderStyle = bsNone
    DataSource = DataSource1
    ParentShowHint = False
    ShowHint = True
    TabOrder = 2
    TitleFont.Charset = DEFAULT_CHARSET
    TitleFont.Color = clWindowText
    TitleFont.Height = -11
    TitleFont.Name = 'MS Sans Serif'
    TitleFont.Style = []
    Columns = <
      item
        Expanded = False
        FieldName = 'AccountID'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'AccountName'
        Width = 100
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'AccountAddr'
        Width = 100
        Visible = True
      end>
  end
  object DBNavigator2: TDBNavigator
    Left = 0
    Top = 373
    Width = 575
    Height = 18
    DataSource = DataSource2
    Align = alBottom
    Flat = True
    ParentShowHint = False
    ShowHint = True
    TabOrder = 3
  end
  object DBGrid2: TDBGrid
    Left = 0
    Top = 253
    Width = 575
    Height = 120
    Hint = 
      'OrderID is AUTOINC, AccountID is the column which is master link' +
      'ed to accounts.  As you add records you will see the components ' +
      'autopopulate this field for you with the master table'#39's current ' +
      'value'
    Align = alBottom
    BorderStyle = bsNone
    DataSource = DataSource2
    ParentShowHint = False
    ShowHint = True
    TabOrder = 4
    TitleFont.Charset = DEFAULT_CHARSET
    TitleFont.Color = clWindowText
    TitleFont.Height = -11
    TitleFont.Name = 'MS Sans Serif'
    TitleFont.Style = []
    Columns = <
      item
        Expanded = False
        FieldName = 'OrderID'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'AccountID'
        ReadOnly = True
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'ProductID'
        Visible = True
      end>
  end
  object Button1: TButton
    Left = 320
    Top = 41
    Width = 137
    Height = 25
    Caption = 'Connect'
    TabOrder = 5
    OnClick = Button1Click
  end
  object Button2: TButton
    Left = 320
    Top = 65
    Width = 137
    Height = 25
    Caption = 'Create DB'
    TabOrder = 8
    OnClick = Button2Click
  end
  object Button3: TButton
    Left = 320
    Top = 89
    Width = 137
    Height = 25
    Caption = 'Create Tables && Data'
    TabOrder = 6
    OnClick = Button3Click
  end
  object GroupBox1: TGroupBox
    Left = 0
    Top = 391
    Width = 575
    Height = 105
    Hint = 
      'This table contains, MEMO and BLOB (Image) fields as well as a F' +
      'LOAT.  It is linked to the orders grid'
    Align = alBottom
    Caption = 'Product Info'
    ParentShowHint = False
    ShowHint = True
    TabOrder = 7
    object DBText2: TDBText
      Left = 64
      Top = 32
      Width = 65
      Height = 17
      DataField = 'ProductAmount'
      DataSource = DataSource3
    end
    object DBText1: TDBText
      Left = 64
      Top = 16
      Width = 101
      Height = 17
      DataField = 'ProductName'
      DataSource = DataSource3
    end
    object Name: TLabel
      Left = 8
      Top = 16
      Width = 28
      Height = 13
      Caption = 'Name'
    end
    object Label4: TLabel
      Left = 8
      Top = 32
      Width = 36
      Height = 13
      Caption = 'Amount'
    end
    object DBImage1: TDBImage
      Left = 8
      Top = 48
      Width = 65
      Height = 49
      DataField = 'ProductImage'
      DataSource = DataSource3
      TabOrder = 0
    end
    object DBMemo1: TDBMemo
      Left = 224
      Top = 16
      Width = 354
      Height = 81
      Anchors = [akLeft, akTop, akRight]
      DataField = 'ProductText'
      DataSource = DataSource3
      TabOrder = 1
    end
  end
  object DBNavigator3: TDBNavigator
    Left = 0
    Top = 496
    Width = 575
    Height = 18
    DataSource = DataSource3
    VisibleButtons = [nbEdit, nbPost, nbCancel, nbRefresh]
    Align = alBottom
    Flat = True
    ParentShowHint = False
    ShowHint = True
    TabOrder = 9
  end
  object memLogger: TMemo
    Left = 0
    Top = 514
    Width = 575
    Height = 70
    Align = alBottom
    BorderStyle = bsNone
    ScrollBars = ssVertical
    TabOrder = 10
  end
  object MySQLServer1: TMySQLServer
    Host = 'localhost'
    LoginPrompt = True
    UserName = 'root'
    Left = 280
    Top = 48
  end
  object OpenDialog1: TOpenDialog
    DefaultExt = 'sql'
    FileName = 'sampledb.sql'
    Filter = '*.sql'
    FilterIndex = 0
    Options = [ofHideReadOnly, ofPathMustExist, ofFileMustExist, ofEnableSizing]
    Title = 'Open SQL Script'
    Left = 280
    Top = 160
  end
  object DataSource1: TDataSource
    DataSet = MySQLTable1
    Left = 280
    Top = 208
  end
  object DataSource2: TDataSource
    DataSet = MySQLTable2
    Left = 280
    Top = 352
  end
  object MySQLTable1: TMySQLTable
    Server = MySQLServer1
    TableName = 'accounts'
    Options = [doShareConnection, doMacrosEnabled, doMacroCheck, do2KStrToMemo, doUseCursor]
    OnExecSQL = MySQLTable1ExecSQL
    Left = 320
    Top = 208
  end
  object MySQLTable2: TMySQLTable
    Server = MySQLServer1
    MasterFields = 'AccountID=AccountID'
    MasterSource = DataSource1
    TableName = 'orders'
    Options = [doShareConnection, doMacrosEnabled, doMacroCheck, do2KStrToMemo, doUseCursor]
    OnExecSQL = MySQLTable1ExecSQL
    Left = 320
    Top = 352
  end
  object DataSource3: TDataSource
    DataSet = MySQLTable3
    Left = 280
    Top = 490
  end
  object MySQLTable3: TMySQLTable
    Server = MySQLServer1
    MasterFields = 'ProductID=ProductID'
    MasterSource = DataSource2
    TableName = 'products'
    Options = [doShareConnection, doMacrosEnabled, doMacroCheck, do2KStrToMemo, doUseCursor]
    OnExecSQL = MySQLTable1ExecSQL
    Left = 320
    Top = 490
  end
end

⌨️ 快捷键说明

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