home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 May / CMCD0505.ISO / Software / Shareware / Programare / pgedri / Source / Demos / Sequences / Main.xfm < prev    next >
Encoding:
Text File  |  2005-04-01  |  3.9 KB  |  173 lines

  1. object Form1: TForm1
  2.   Left = 155
  3.   Top = 161
  4.   Width = 532
  5.   Height = 294
  6.   VertScrollBar.Range = 41
  7.   ActiveControl = DBGrid1
  8.   Caption = 'Sequences Demo'
  9.   Color = clBackground
  10.   PixelsPerInch = 96
  11.   TextHeight = 13
  12.   TextWidth = 6
  13.   object DBGrid1: TDBGrid
  14.     Left = 0
  15.     Top = 41
  16.     Width = 532
  17.     Height = 253
  18.     Align = alClient
  19.     DataSource = DataSource1
  20.     TabOrder = 0
  21.     TitleFont.Color = clBlack
  22.     TitleFont.Height = 11
  23.     TitleFont.Name = 'MS Shell Dlg'
  24.     TitleFont.Pitch = fpVariable
  25.     TitleFont.Style = []
  26.     TitleFont.Weight = 40
  27.     Columns = <
  28.       item
  29.         Expanded = False
  30.         FieldName = 'id'
  31.         Visible = True
  32.       end
  33.       item
  34.         Expanded = False
  35.         FieldName = 'name'
  36.         Width = 200
  37.         Visible = True
  38.       end
  39.       item
  40.         Expanded = False
  41.         FieldName = 'age'
  42.         Visible = True
  43.       end>
  44.   end
  45.   object Panel1: TPanel
  46.     Left = 0
  47.     Top = 0
  48.     Width = 532
  49.     Height = 41
  50.     Align = alTop
  51.     BevelOuter = bvNone
  52.     TabOrder = 1
  53.     object Button1: TButton
  54.       Left = 292
  55.       Top = 8
  56.       Width = 75
  57.       Height = 25
  58.       Caption = 'Create Table'
  59.       TabOrder = 0
  60.       OnClick = Button1Click
  61.     end
  62.     object Button2: TButton
  63.       Left = 373
  64.       Top = 8
  65.       Width = 75
  66.       Height = 25
  67.       Caption = 'Delete Table'
  68.       TabOrder = 1
  69.       OnClick = Button2Click
  70.     end
  71.     object Button3: TButton
  72.       Left = 2
  73.       Top = 8
  74.       Width = 75
  75.       Height = 25
  76.       Caption = 'Open Table'
  77.       TabOrder = 2
  78.       OnClick = Button3Click
  79.     end
  80.     object Button4: TButton
  81.       Left = 455
  82.       Top = 8
  83.       Width = 75
  84.       Height = 25
  85.       Caption = 'Structure'
  86.       TabOrder = 3
  87.       OnClick = Button4Click
  88.     end
  89.     object Button5: TButton
  90.       Left = 83
  91.       Top = 8
  92.       Width = 84
  93.       Height = 25
  94.       Caption = 'Apply Updates'
  95.       TabOrder = 4
  96.       OnClick = Button5Click
  97.     end
  98.   end
  99.   object DataSource1: TDataSource
  100.     DataSet = cdsSequences_Demo
  101.     Left = 352
  102.     Top = 104
  103.   end
  104.   object SQLConnection: TSQLConnection
  105.     ConnectionName = 'PGEConnection'
  106.     DriverName = 'PostgreSQL'
  107.     GetDriverFunc = 'getSQLDriverPOSTGRESQL'
  108.     LibraryName = 'dbexppge.dll'
  109.     LoadParamsOnConnect = True
  110.     LoginPrompt = False
  111.     Params.Strings = (
  112.       '')
  113.     VendorLib = 'libpq.dll'
  114.     Connected = True
  115.     Left = 76
  116.     Top = 96
  117.   end
  118.   object sdsSequences_Demo: TSQLDataSet
  119.     CommandText = 'sequences_demo'
  120.     CommandType = ctTable
  121.     MaxBlobSize = -1
  122.     Params = <>
  123.     SQLConnection = SQLConnection
  124.     Left = 76
  125.     Top = 144
  126.     object sdsSequences_Demoid: TIntegerField
  127.       FieldName = 'id'
  128.       ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
  129.     end
  130.     object sdsSequences_Demoname: TStringField
  131.       FieldName = 'name'
  132.       Size = 100
  133.     end
  134.     object sdsSequences_Demoage: TSmallintField
  135.       FieldName = 'age'
  136.     end
  137.   end
  138.   object cdsSequences_Demo: TClientDataSet
  139.     Aggregates = <>
  140.     Params = <>
  141.     ProviderName = 'dspSequences_Demo'
  142.     AfterOpen = cdsSequences_DemoAfterOpen
  143.     AfterClose = cdsSequences_DemoAfterClose
  144.     Left = 72
  145.     Top = 240
  146.     object cdsSequences_Demoid: TIntegerField
  147.       FieldName = 'id'
  148.     end
  149.     object cdsSequences_Demoname: TStringField
  150.       FieldName = 'name'
  151.       Size = 100
  152.     end
  153.     object cdsSequences_Demoage: TSmallintField
  154.       FieldName = 'age'
  155.     end
  156.   end
  157.   object dspSequences_Demo: TDataSetProvider
  158.     DataSet = sdsSequences_Demo
  159.     Options = [poPropogateChanges]
  160.     BeforeUpdateRecord = dspSequences_DemoBeforeUpdateRecord
  161.     Left = 74
  162.     Top = 192
  163.   end
  164.   object sdsGetID: TSQLDataSet
  165.     CommandText = 'select nextval('#39'sequences_demo_id_seq'#39');'
  166.     MaxBlobSize = -1
  167.     Params = <>
  168.     SQLConnection = SQLConnection
  169.     Left = 176
  170.     Top = 100
  171.   end
  172. end
  173.