Source

asprovider / Demo / TestMain.dfm

object MainForm: TMainForm
  Left = 0
  Top = 0
  Caption = 'AS Provider Demo App'
  ClientHeight = 593
  ClientWidth = 967
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'Tahoma'
  Font.Style = []
  OldCreateOrder = False
  PixelsPerInch = 96
  TextHeight = 13
  object DBText1: TDBText
    Left = 498
    Top = 146
    Width = 65
    Height = 17
    DataField = 'Name'
    DataSource = DataSource1
  end
  object Button1: TButton
    Left = 254
    Top = 174
    Width = 75
    Height = 25
    Action = Action2
    TabOrder = 0
  end
  object DBGrid1: TDBGrid
    Left = 0
    Top = 0
    Width = 967
    Height = 137
    Align = alTop
    DataSource = DataSource1
    TabOrder = 1
    TitleFont.Charset = DEFAULT_CHARSET
    TitleFont.Color = clWindowText
    TitleFont.Height = -11
    TitleFont.Name = 'Tahoma'
    TitleFont.Style = []
  end
  object Button2: TButton
    Left = 335
    Top = 143
    Width = 75
    Height = 25
    Action = Action3
    TabOrder = 2
  end
  object DBNavigator1: TDBNavigator
    Left = 8
    Top = 143
    Width = 240
    Height = 25
    DataSource = DataSource1
    TabOrder = 3
  end
  object DBGrid2: TDBGrid
    Left = 0
    Top = 376
    Width = 967
    Height = 217
    Align = alBottom
    Anchors = [akLeft, akTop, akRight, akBottom]
    DataSource = DataSource2
    TabOrder = 4
    TitleFont.Charset = DEFAULT_CHARSET
    TitleFont.Color = clWindowText
    TitleFont.Height = -11
    TitleFont.Name = 'Tahoma'
    TitleFont.Style = []
  end
  object DBNavigator2: TDBNavigator
    Left = 8
    Top = 345
    Width = 240
    Height = 25
    DataSource = DataSource2
    TabOrder = 5
  end
  object DBEdit1: TDBEdit
    Left = 569
    Top = 143
    Width = 121
    Height = 21
    DataField = 'Caption'
    DataSource = DataSource1
    TabOrder = 6
    OnChange = DBEdit1Change
  end
  object Button3: TButton
    Left = 335
    Top = 174
    Width = 75
    Height = 25
    Action = Action4
    TabOrder = 7
  end
  object Button4: TButton
    Left = 254
    Top = 143
    Width = 75
    Height = 25
    Action = Action1
    TabOrder = 8
  end
  object ASComponentProvider1: TASComponentProvider
    Active = True
    FieldDefs = <
      item
        Name = 'Name'
        DataType = ftWideString
        Size = 20
      end
      item
        Name = 'Caption'
        DataType = ftWideString
        Size = 20
      end
      item
        Name = 'Left'
        DataType = ftInteger
      end
      item
        Name = 'Top'
        DataType = ftInteger
      end
      item
        Name = 'Width'
        DataType = ftInteger
      end
      item
        Name = 'Height'
        DataType = ftInteger
      end>
    ProvidedComponent = Button1
    Left = 56
    Top = 176
  end
  object ClientDataSet1: TClientDataSet
    Active = True
    Aggregates = <>
    Params = <>
    ProviderName = 'ASComponentProvider1'
    Left = 56
    Top = 224
    object ClientDataSet1Name: TWideStringField
      FieldName = 'Name'
    end
    object ClientDataSet1Caption: TWideStringField
      FieldName = 'Caption'
    end
    object ClientDataSet1Left: TIntegerField
      FieldName = 'Left'
    end
    object ClientDataSet1Top: TIntegerField
      FieldName = 'Top'
    end
  end
  object DataSource1: TDataSource
    DataSet = ClientDataSet1
    Left = 160
    Top = 176
  end
  object DataSource2: TDataSource
    DataSet = DS
    OnDataChange = DataSource2DataChange
    OnUpdateData = DataSource2UpdateData
    Left = 136
    Top = 280
  end
  object ActionList1: TActionList
    Left = 56
    Top = 280
    object Action1: TAction
      Caption = 'Open'
      OnExecute = Action1Execute
      OnUpdate = Action1Update
    end
    object Action2: TAction
      Caption = 'Close'
      OnExecute = Action2Execute
      OnUpdate = Action2Update
    end
    object Action3: TAction
      Caption = 'Apply'
      OnExecute = Action3Execute
      OnUpdate = Action3Update
    end
    object Action4: TAction
      Caption = 'Cancel'
      OnExecute = Action4Execute
      OnUpdate = Action4Update
    end
  end
  object DS: TClientDataSet
    Aggregates = <>
    FieldDefs = <
      item
        Name = 'TMySet'
        ChildDefs = <
          item
            Name = 'TMySetFieldKey'
            DataType = ftString
            Size = 20
          end
          item
            Name = 'TMySetFieldValue'
            DataType = ftString
            Size = 20
          end>
        DataType = ftArray
        Size = 10
      end>
    IndexDefs = <>
    Params = <>
    StoreDefs = True
    Left = 248
    Top = 280
  end
end