home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / delphi / kolekce / d456 / VOLGAPAK.ZIP / Demo / MainBook.dfm / MainBook.txt
Encoding:
Text File  |  2001-09-20  |  8.6 KB  |  341 lines

  1. object Form1: TForm1
  2.   Left = 192
  3.   Top = 107
  4.   Width = 635
  5.   Height = 448
  6.   Caption = 'Volga component library demo'
  7.   Color = clBtnFace
  8.   Font.Charset = DEFAULT_CHARSET
  9.   Font.Color = clWindowText
  10.   Font.Height = -11
  11.   Font.Name = 'MS Sans Serif'
  12.   Font.Style = []
  13.   OldCreateOrder = False
  14.   OnShow = FormShow
  15.   PixelsPerInch = 96
  16.   TextHeight = 13
  17.   object PageControl1: TPageControl
  18.     Left = 0
  19.     Top = 0
  20.     Width = 627
  21.     Height = 421
  22.     ActivePage = TabSheet1
  23.     Align = alClient
  24.     TabOrder = 0
  25.     object TabSheet1: TTabSheet
  26.       Caption = 'Authors and books'
  27.       object Label1: TLabel
  28.         Left = 24
  29.         Top = 24
  30.         Width = 31
  31.         Height = 13
  32.         Caption = 'Author'
  33.       end
  34.       object Label2: TLabel
  35.         Left = 24
  36.         Top = 58
  37.         Width = 54
  38.         Height = 13
  39.         Caption = 'Book name'
  40.       end
  41.       object Label3: TLabel
  42.         Left = 24
  43.         Top = 91
  44.         Width = 42
  45.         Height = 13
  46.         Caption = 'Category'
  47.       end
  48.       object VolgaDBGrid1: TVolgaDBGrid
  49.         Left = 0
  50.         Top = 120
  51.         Width = 619
  52.         Height = 273
  53.         Hint = 'Click on column title to sort'
  54.         Align = alBottom
  55.         AllowDelete = False
  56.         AllowInsert = False
  57.         DataSource = DataBook
  58.         Options = [dgTitles, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgCancelOnExit]
  59.         ParentShowHint = False
  60.         ShowHint = True
  61.         TabOrder = 0
  62.         TitleFont.Charset = DEFAULT_CHARSET
  63.         TitleFont.Color = clWindowText
  64.         TitleFont.Height = -11
  65.         TitleFont.Name = 'MS Sans Serif'
  66.         TitleFont.Style = []
  67.         OnDrawTitleAttr = VolgaDBGrid1DrawTitleAttr
  68.         OnTitleClick = VolgaDBGrid1TitleClick
  69.         Columns = <
  70.           item
  71.             CanClick = True
  72.             FieldName = 'Author'
  73.             Width = 194
  74.             Visible = True
  75.           end
  76.           item
  77.             CanClick = True
  78.             FieldName = 'BookName'
  79.             Width = 398
  80.             Visible = True
  81.           end>
  82.       end
  83.       object VolgaDBEdit1: TVolgaDBEdit
  84.         Left = 96
  85.         Top = 20
  86.         Width = 265
  87.         Height = 21
  88.         Hint = 'Move between controls with ENTER, DOWN, UP buttons'
  89.         DataField = 'Author'
  90.         DataSource = DataBook
  91.         ParentShowHint = False
  92.         ShowHint = True
  93.         TabOrder = 1
  94.       end
  95.       object VolgaDBEdit2: TVolgaDBEdit
  96.         Left = 96
  97.         Top = 54
  98.         Width = 489
  99.         Height = 21
  100.         DataField = 'BookName'
  101.         DataSource = DataBook
  102.         TabOrder = 2
  103.       end
  104.       object VolgaDBEdit3: TVolgaDBEdit
  105.         Left = 96
  106.         Top = 88
  107.         Width = 314
  108.         Height = 21
  109.         Hint = 'Click or press SPACE button to select category'
  110.         DataField = 'Category'
  111.         DataSource = DataBook
  112.         DialogStyle = vdsTree
  113.         LookupDataSet = Cat
  114.         LookupProps.SourceKeyField = 'Category'
  115.         LookupProps.LookupKeyField = 'Category'
  116.         LookupProps.ListFieldNames = 'CatName'
  117.         ParentShowHint = False
  118.         ShowHint = True
  119.         Style = vcsDropDownList
  120.         TabOrder = 3
  121.         TreeProps.LevelField = 'Level'
  122.         TreeProps.TextField = 'CatName'
  123.         TreeProps.UniqueField = 'Category'
  124.       end
  125.       object DBNavigator1: TDBNavigator
  126.         Left = 441
  127.         Top = 90
  128.         Width = 174
  129.         Height = 25
  130.         DataSource = DataBook
  131.         VisibleButtons = [nbFirst, nbLast, nbInsert, nbDelete, nbPost, nbCancel]
  132.         TabOrder = 4
  133.       end
  134.     end
  135.     object TabSheet2: TTabSheet
  136.       Caption = 'What books I already readed'
  137.       ImageIndex = 1
  138.       object Label4: TLabel
  139.         Left = 16
  140.         Top = 16
  141.         Width = 30
  142.         Height = 13
  143.         Caption = 'Period'
  144.       end
  145.       object Period: TVolgaPeriod
  146.         Left = 56
  147.         Top = 8
  148.         Width = 153
  149.         Height = 26
  150.         Hint = 
  151.           'Click on UpDown button for change period'#13#10'Change kind of period ' +
  152.           'on right button click'
  153.         KindRange = ksMonth
  154.         Year = 2000
  155.         Month = 12
  156.         OnChange = PeriodChange
  157.         ButtonWidth = 17
  158.         EnablePopup = True
  159.         ShowHint = True
  160.       end
  161.       object VolgaDBGrid2: TVolgaDBGrid
  162.         Left = 0
  163.         Top = 48
  164.         Width = 619
  165.         Height = 345
  166.         Hint = 'Sort on the fly by clicking on column title'
  167.         Align = alBottom
  168.         DataSource = DataReadB
  169.         ParentShowHint = False
  170.         ShowHint = True
  171.         TabOrder = 1
  172.         TitleFont.Charset = DEFAULT_CHARSET
  173.         TitleFont.Color = clWindowText
  174.         TitleFont.Height = -11
  175.         TitleFont.Name = 'MS Sans Serif'
  176.         TitleFont.Style = []
  177.         OnDrawCellAttr = VolgaDBGrid2DrawCellAttr
  178.         OnDrawTitleAttr = VolgaDBGrid1DrawTitleAttr
  179.         OnTitleClick = VolgaDBGrid1TitleClick
  180.         Columns = <
  181.           item
  182.             ButtonStyle = cbsCalendar
  183.             CanClick = True
  184.             FieldName = 'DataStart'
  185.             Title.Caption = 'Start read at'
  186.             Width = 89
  187.             Visible = True
  188.           end
  189.           item
  190.             ButtonStyle = cbsCalendar
  191.             CanClick = True
  192.             FieldName = 'DataEnd'
  193.             Title.Caption = 'Stop read at'
  194.             Width = 87
  195.             Visible = True
  196.           end
  197.           item
  198.             AutoDropDown = True
  199.             ButtonStyle = cbsLookup
  200.             CanClick = True
  201.             DropDownWidth = 300
  202.             FieldName = 'BookID'
  203.             LookupDropDownFields = 'BookName;Author'
  204.             LookupKeyField = 'BookID'
  205.             LookupLinkField = 'BookID'
  206.             LookupDataSet = Book
  207.             Title.Caption = 'Book name'
  208.             Width = 253
  209.             Visible = True
  210.           end
  211.           item
  212.             ButtonStyle = cbsCombo
  213.             CanClick = True
  214.             FieldName = 'Ball'
  215.             PickList.Strings = (
  216.               'Excellent'
  217.               'Good'
  218.               'Mediocre'
  219.               'Uninteresting'
  220.               'Break to read')
  221.             PickValues.Strings = (
  222.               '5'
  223.               '4'
  224.               '3'
  225.               '2'
  226.               '1')
  227.             Width = 81
  228.             Visible = True
  229.           end
  230.           item
  231.             ButtonStyle = cbsCheck
  232.             CanClick = True
  233.             FieldName = 'MyBook'
  234.             Title.Caption = 'Is it my book?'
  235.             ValueChecked = '1'
  236.             ValueUnChecked = '0'
  237.             Visible = True
  238.           end>
  239.       end
  240.       object DBNavigator2: TDBNavigator
  241.         Left = 441
  242.         Top = 18
  243.         Width = 174
  244.         Height = 25
  245.         DataSource = DataReadB
  246.         VisibleButtons = [nbFirst, nbLast, nbInsert, nbDelete, nbPost, nbCancel]
  247.         TabOrder = 2
  248.       end
  249.     end
  250.   end
  251.   object Cat: TVolgaTable
  252.     AfterPost = BookAfterPost
  253.     TableName = 'catb.d'
  254.     LoadMode = lmFile
  255.     Left = 464
  256.     object CatIndex: TIntegerField
  257.       FieldName = 'Index'
  258.     end
  259.     object CatLevel: TIntegerField
  260.       FieldName = 'Level'
  261.     end
  262.     object CatCategory: TStringField
  263.       DefaultExpression = 'UNICOD'
  264.       FieldName = 'Category'
  265.       Size = 8
  266.     end
  267.     object CatCatName: TStringField
  268.       FieldName = 'CatName'
  269.       Size = 30
  270.     end
  271.   end
  272.   object Book: TVolgaTable
  273.     IndexFieldNames = 'Author'
  274.     UniqueFieldNames = 'BookID'
  275.     Active = True
  276.     AfterPost = BookAfterPost
  277.     OnNewRecord = BookNewRecord
  278.     TableName = 'books.d'
  279.     LoadMode = lmFile
  280.     Left = 428
  281.     object BookBookID: TStringField
  282.       DefaultExpression = 'UNICOD'
  283.       FieldName = 'BookID'
  284.       Size = 8
  285.     end
  286.     object BookAuthor: TStringField
  287.       FieldName = 'Author'
  288.       Size = 30
  289.     end
  290.     object BookBookName: TStringField
  291.       FieldName = 'BookName'
  292.       Size = 70
  293.     end
  294.     object BookCategory: TStringField
  295.       FieldName = 'Category'
  296.       Size = 8
  297.     end
  298.   end
  299.   object DataBook: TDataSource
  300.     DataSet = Book
  301.     Left = 396
  302.   end
  303.   object DataCat: TDataSource
  304.     DataSet = Cat
  305.     Left = 496
  306.   end
  307.   object ReadB: TVolgaTable
  308.     IndexFieldNames = 'DataStart'
  309.     RangeFieldNames = 'DataStart'
  310.     Active = True
  311.     AfterPost = BookAfterPost
  312.     OnNewRecord = ReadBNewRecord
  313.     TableName = 'readb.d'
  314.     LoadMode = lmFile
  315.     Left = 320
  316.     object ReadBDataStart: TDateField
  317.       DefaultExpression = 'TODAY'
  318.       FieldName = 'DataStart'
  319.     end
  320.     object ReadBDataEnd: TDateField
  321.       DefaultExpression = 'TODAY'
  322.       FieldName = 'DataEnd'
  323.     end
  324.     object ReadBBookID: TStringField
  325.       FieldName = 'BookID'
  326.       Size = 8
  327.     end
  328.     object ReadBBall: TIntegerField
  329.       FieldName = 'Ball'
  330.     end
  331.     object ReadBMyBook: TStringField
  332.       FieldName = 'MyBook'
  333.       Size = 1
  334.     end
  335.   end
  336.   object DataReadB: TDataSource
  337.     DataSet = ReadB
  338.     Left = 288
  339.   end
  340. end
  341.