object Form1: TForm1
  Left = 194
  Top = 113
  Width = 603
  Height = 470
  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 Image1: TImage
    Left = 8
    Top = 8
    Width = 280
    Height = 72
    AutoSize = True
    Picture.Data = {
      [encoded data, 61952 characters]
      FE95FFD9}
  end
  object Label1: TLabel
    Left = 326
    Top = 16
    Width = 242
    Height = 29
    Caption = 'Componente DBGrid'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -24
    Font.Name = 'MS Sans Serif'
    Font.Style = [fsBold]
    ParentFont = False
  end
  object Label2: TLabel
    Left = 368
    Top = 51
    Width = 154
    Height = 20
    Caption = 'www.alberteije.com'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -16
    Font.Name = 'MS Sans Serif'
    Font.Style = [fsBold]
    ParentFont = False
  end
  object DBGrid1: TDBGrid
    Left = 8
    Top = 88
    Width = 577
    Height = 193
    DataSource = DataSource1
    Font.Charset = ANSI_CHARSET
    Font.Color = clWindowText
    Font.Height = -11
    Font.Name = 'Arial'
    Font.Style = []
    ParentFont = False
    TabOrder = 0
    TitleFont.Charset = DEFAULT_CHARSET
    TitleFont.Color = clRed
    TitleFont.Height = -13
    TitleFont.Name = 'MS Sans Serif'
    TitleFont.Style = [fsBold]
    OnKeyDown = DBGrid1KeyDown
    OnKeyPress = DBGrid1KeyPress
    OnTitleClick = DBGrid1TitleClick
    Columns = <
      item
        Expanded = False
        FieldName = 'CODIGO'
        Title.Caption = 'C'#243'digo'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'NOME'
        Font.Charset = ANSI_CHARSET
        Font.Color = clWindowText
        Font.Height = -11
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        Title.Caption = 'Nome'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'IDENTIDADE'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'CPF'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'ENDERECO'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'BAIRRO'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'CIDADE'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'EscolhaCidade'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'UF'
        PickList.Strings = (
          'CE'
          'SP'
          'RJ'
          'RS'
          'MA')
        Width = 50
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'CEP'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'OBS'
        Width = 200
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'FONEUM'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'FONEDOIS'
        Visible = True
      end
      item
        Expanded = False
        FieldName = 'EMAIL'
        Width = 200
        Visible = True
      end>
  end
  object Button1: TButton
    Left = 8
    Top = 400
    Width = 75
    Height = 25
    Caption = 'Button1'
    TabOrder = 1
    OnClick = Button1Click
  end
  object DBGrid2: TDBGrid
    Left = 8
    Top = 288
    Width = 577
    Height = 105
    DataSource = DataSource2
    TabOrder = 2
    TitleFont.Charset = DEFAULT_CHARSET
    TitleFont.Color = clWindowText
    TitleFont.Height = -11
    TitleFont.Name = 'MS Sans Serif'
    TitleFont.Style = []
  end
  object Query1: TQuery
    Active = True
    DatabaseName = 'Dados'
    RequestLive = True
    SQL.Strings = (
      'select * from cliente')
    Left = 256
    Top = 120
    object Query1CODIGO: TIntegerField
      FieldName = 'CODIGO'
      Origin = 'DADOS."cliente.DB".CODIGO'
    end
    object Query1NOME: TStringField
      FieldName = 'NOME'
      Origin = 'DADOS."cliente.DB".NOME'
      Size = 50
    end
    object Query1IDENTIDADE: TFloatField
      FieldName = 'IDENTIDADE'
      Origin = 'DADOS."cliente.DB".IDENTIDADE'
    end
    object Query1CPF: TStringField
      FieldName = 'CPF'
      Origin = 'DADOS."cliente.DB".CPF'
      Size = 14
    end
    object Query1ENDERECO: TStringField
      FieldName = 'ENDERECO'
      Origin = 'DADOS."cliente.DB".ENDERECO'
      Size = 50
    end
    object Query1BAIRRO: TStringField
      FieldName = 'BAIRRO'
      Origin = 'DADOS."cliente.DB".BAIRRO'
      Size = 15
    end
    object Query1CIDADE: TStringField
      FieldName = 'CIDADE'
      Origin = 'DADOS."cliente.DB".CIDADE'
      Size = 15
    end
    object Query1UF: TStringField
      FieldName = 'UF'
      Origin = 'DADOS."cliente.DB".UF'
      Size = 2
    end
    object Query1CEP: TStringField
      FieldName = 'CEP'
      Origin = 'DADOS."cliente.DB".CEP'
      Size = 9
    end
    object Query1OBS: TStringField
      FieldName = 'OBS'
      Origin = 'DADOS."cliente.DB".OBS'
      Size = 255
    end
    object Query1FONEUM: TStringField
      FieldName = 'FONEUM'
      Origin = 'DADOS."cliente.DB".FONEUM'
      Size = 14
    end
    object Query1FONEDOIS: TStringField
      FieldName = 'FONEDOIS'
      Origin = 'DADOS."cliente.DB".FONEDOIS'
      Size = 14
    end
    object Query1EMAIL: TStringField
      FieldName = 'EMAIL'
      Origin = 'DADOS."cliente.DB".EMAIL'
      Size = 150
    end
    object Query1REFUM: TStringField
      FieldName = 'REFUM'
      Origin = 'DADOS."cliente.DB".REFUM'
      Size = 50
    end
    object Query1FONEREFUM: TStringField
      FieldName = 'FONEREFUM'
      Origin = 'DADOS."cliente.DB".FONEREFUM'
      Size = 14
    end
    object Query1REFDOIS: TStringField
      FieldName = 'REFDOIS'
      Origin = 'DADOS."cliente.DB".REFDOIS'
      Size = 50
    end
    object Query1FONEREFDOIS: TStringField
      FieldName = 'FONEREFDOIS'
      Origin = 'DADOS."cliente.DB".FONEREFDOIS'
      Size = 14
    end
    object Query1EscolhaCidade: TStringField
      FieldKind = fkLookup
      FieldName = 'EscolhaCidade'
      LookupDataSet = Query2
      LookupKeyFields = 'CID_NOME'
      LookupResultField = 'CID_NOME'
      KeyFields = 'CIDADE'
      Size = 50
      Lookup = True
    end
  end
  object DataSource1: TDataSource
    DataSet = Query1
    Left = 328
    Top = 120
  end
  object Query2: TQuery
    Active = True
    DatabaseName = 'Dados'
    RequestLive = True
    SQL.Strings = (
      'select * from cidade')
    Left = 272
    Top = 312
  end
  object DataSource2: TDataSource
    DataSet = Query2
    Left = 344
    Top = 312
  end
end
