home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / handson / files / delphi / td.dfm / td.txt
Encoding:
Text File  |  1999-12-22  |  11.0 KB  |  460 lines

  1. object ToDoForm: TToDoForm
  2.   Left = 203
  3.   Top = 143
  4.   Width = 800
  5.   Height = 535
  6.   ActiveControl = Panel1
  7.   Caption = 'Things To Do '
  8.   ParentFont = True
  9.   Position = poScreenCenter
  10.   Scaled = False
  11.   OnCreate = FormCreate
  12.   PixelsPerInch = 96
  13.   TextHeight = 13
  14.   object Panel1: TPanel
  15.     Left = 0
  16.     Top = 0
  17.     Width = 792
  18.     Height = 25
  19.     Align = alTop
  20.     TabOrder = 0
  21.     object DBNavigator: TDBNavigator
  22.       Left = 8
  23.       Top = 3
  24.       Width = 240
  25.       Height = 18
  26.       DataSource = ToDoDataSource
  27.       Flat = True
  28.       Ctl3D = True
  29.       ParentCtl3D = False
  30.       ParentShowHint = False
  31.       ShowHint = True
  32.       TabOrder = 0
  33.     end
  34.   end
  35.   object Panel2: TPanel
  36.     Left = 0
  37.     Top = 25
  38.     Width = 792
  39.     Height = 483
  40.     Align = alClient
  41.     BevelInner = bvLowered
  42.     BorderWidth = 4
  43.     Caption = 'Panel2'
  44.     TabOrder = 1
  45.     object ScrollBox: TScrollBox
  46.       Left = 6
  47.       Top = 6
  48.       Width = 780
  49.       Height = 471
  50.       HorzScrollBar.Margin = 6
  51.       HorzScrollBar.Range = 380
  52.       VertScrollBar.Margin = 6
  53.       VertScrollBar.Range = 269
  54.       Align = alClient
  55.       AutoScroll = False
  56.       BorderStyle = bsNone
  57.       Font.Charset = DEFAULT_CHARSET
  58.       Font.Color = clWindowText
  59.       Font.Height = -11
  60.       Font.Name = 'MS Sans Serif'
  61.       Font.Style = []
  62.       ParentFont = False
  63.       TabOrder = 0
  64.       object Label1: TLabel
  65.         Left = 6
  66.         Top = 6
  67.         Width = 74
  68.         Height = 13
  69.         Alignment = taRightJustify
  70.         AutoSize = False
  71.         Caption = 'Item Number'
  72.         FocusControl = EditItemNumber
  73.       end
  74.       object Label2: TLabel
  75.         Left = 6
  76.         Top = 27
  77.         Width = 74
  78.         Height = 13
  79.         Alignment = taRightJustify
  80.         AutoSize = False
  81.         Caption = 'Item'
  82.         FocusControl = EditItem
  83.       end
  84.       object Label4: TLabel
  85.         Left = 6
  86.         Top = 48
  87.         Width = 74
  88.         Height = 13
  89.         Alignment = taRightJustify
  90.         AutoSize = False
  91.         Caption = 'Type'
  92.       end
  93.       object Label5: TLabel
  94.         Left = 6
  95.         Top = 69
  96.         Width = 74
  97.         Height = 13
  98.         Alignment = taRightJustify
  99.         AutoSize = False
  100.         Caption = 'Date entered'
  101.       end
  102.       object Label6: TLabel
  103.         Left = 6
  104.         Top = 93
  105.         Width = 74
  106.         Height = 13
  107.         Alignment = taRightJustify
  108.         AutoSize = False
  109.         Caption = 'Date due'
  110.       end
  111.       object Label7: TLabel
  112.         Left = 6
  113.         Top = 114
  114.         Width = 74
  115.         Height = 13
  116.         Alignment = taRightJustify
  117.         AutoSize = False
  118.         Caption = 'Done'
  119.         FocusControl = CheckBoxDone
  120.       end
  121.       object Label8: TLabel
  122.         Left = 358
  123.         Top = 6
  124.         Width = 74
  125.         Height = 13
  126.         Alignment = taRightJustify
  127.         AutoSize = False
  128.         Caption = 'Notes'
  129.       end
  130.       object EditItemNumber: TDBEdit
  131.         Left = 86
  132.         Top = 6
  133.         Width = 55
  134.         Height = 21
  135.         DataField = 'Item Number'
  136.         DataSource = ToDoDataSource
  137.         ReadOnly = True
  138.         TabOrder = 0
  139.       end
  140.       object EditItem: TDBEdit
  141.         Left = 86
  142.         Top = 27
  143.         Width = 315
  144.         Height = 21
  145.         DataField = 'Item'
  146.         DataSource = ToDoDataSource
  147.         TabOrder = 1
  148.       end
  149.       object CheckBoxDone: TDBCheckBox
  150.         Left = 86
  151.         Top = 114
  152.         Width = 97
  153.         Height = 17
  154.         DataField = 'Done'
  155.         DataSource = ToDoDataSource
  156.         TabOrder = 2
  157.         ValueChecked = 'Done'
  158.         ValueUnchecked = 'Pending'
  159.       end
  160.       object DBRichEdit1: TDBRichEdit
  161.         Left = 440
  162.         Top = 8
  163.         Width = 337
  164.         Height = 121
  165.         DataField = 'Notes'
  166.         DataSource = ToDoDataSource
  167.         ScrollBars = ssVertical
  168.         TabOrder = 3
  169.         OnKeyUp = DBRichEdit1KeyUp
  170.       end
  171.       object DTPDateEntered: TDateTimePicker
  172.         Left = 86
  173.         Top = 69
  174.         Width = 163
  175.         Height = 21
  176.         CalAlignment = dtaLeft
  177.         Date = 36486.585789814800000000
  178.         Time = 36486.585789814800000000
  179.         DateFormat = dfLong
  180.         DateMode = dmComboBox
  181.         Kind = dtkDate
  182.         ParseInput = False
  183.         OnChange = DTPDateEnteredChange
  184.       end
  185.       object DBRadioGroup1: TDBRadioGroup
  186.         Left = 256
  187.         Top = 48
  188.         Width = 145
  189.         Height = 81
  190.         Caption = 'Priority '
  191.         DataField = 'Priority'
  192.         DataSource = ToDoDataSource
  193.         Items.Strings = (
  194.           'High'
  195.           'Medium'
  196.           'Low')
  197.         TabOrder = 5
  198.         Values.Strings = (
  199.           '1'
  200.           '2'
  201.           '3')
  202.       end
  203.       object DTPDatedue: TDateTimePicker
  204.         Left = 86
  205.         Top = 93
  206.         Width = 163
  207.         Height = 21
  208.         CalAlignment = dtaLeft
  209.         Date = 36490.770359259260000000
  210.         Time = 36490.770359259260000000
  211.         DateFormat = dfLong
  212.         DateMode = dmComboBox
  213.         Kind = dtkDate
  214.         ParseInput = False
  215.         OnChange = DTPDatedueChange
  216.       end
  217.       object Panel3: TPanel
  218.         Left = 0
  219.         Top = 160
  220.         Width = 780
  221.         Height = 311
  222.         Align = alBottom
  223.         Caption = 'Panel3'
  224.         TabOrder = 7
  225.         object DBGrid1: TDBGrid
  226.           Left = 8
  227.           Top = 16
  228.           Width = 633
  229.           Height = 281
  230.           DataSource = ToDoDataSource
  231.           Options = [dgEditing, dgAlwaysShowEditor, dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgConfirmDelete, dgCancelOnExit]
  232.           TabOrder = 0
  233.           TitleFont.Charset = DEFAULT_CHARSET
  234.           TitleFont.Color = clWindowText
  235.           TitleFont.Height = -11
  236.           TitleFont.Name = 'MS Sans Serif'
  237.           TitleFont.Style = []
  238.           OnEditButtonClick = DBGrid1EditButtonClick
  239.           OnTitleClick = DBGrid1TitleClick
  240.           Columns = <
  241.             item
  242.               FieldName = 'Item'
  243.               Width = 300
  244.             end
  245.             item
  246.               FieldName = 'Priority'
  247.               PickList.Strings = (
  248.                 '1'
  249.                 '2'
  250.                 '3')
  251.               Width = 50
  252.             end
  253.             item
  254.               ButtonStyle = cbsEllipsis
  255.               FieldName = 'Type'
  256.               Width = 80
  257.             end
  258.             item
  259.               ButtonStyle = cbsEllipsis
  260.               FieldName = 'Date entered'
  261.             end
  262.             item
  263.               ButtonStyle = cbsEllipsis
  264.               FieldName = 'Date due'
  265.               Width = 66
  266.             end
  267.             item
  268.               FieldName = 'Done'
  269.               PickList.Strings = (
  270.                 'True'
  271.                 'False')
  272.             end>
  273.         end
  274.         object GridEditCB: TCheckBox
  275.           Left = 648
  276.           Top = 16
  277.           Width = 121
  278.           Height = 17
  279.           Alignment = taLeftJustify
  280.           Caption = 'Edit data in Grid?'
  281.           TabOrder = 1
  282.           OnClick = GridEditCBClick
  283.         end
  284.         object GroupBox1: TGroupBox
  285.           Left = 648
  286.           Top = 64
  287.           Width = 129
  288.           Height = 137
  289.           Caption = 'Filter '
  290.           TabOrder = 2
  291.           object Label3: TLabel
  292.             Left = 8
  293.             Top = 48
  294.             Width = 31
  295.             Height = 13
  296.             Caption = 'Priority'
  297.           end
  298.           object Label9: TLabel
  299.             Left = 8
  300.             Top = 80
  301.             Width = 24
  302.             Height = 13
  303.             Caption = 'Type'
  304.           end
  305.           object OverdueCB: TCheckBox
  306.             Left = 8
  307.             Top = 16
  308.             Width = 113
  309.             Height = 17
  310.             Alignment = taLeftJustify
  311.             Caption = 'Overdue'
  312.             TabOrder = 0
  313.           end
  314.           object ApplyFilterBtn: TButton
  315.             Left = 8
  316.             Top = 104
  317.             Width = 49
  318.             Height = 17
  319.             Caption = 'Apply'
  320.             Font.Charset = ANSI_CHARSET
  321.             Font.Color = clWindowText
  322.             Font.Height = -11
  323.             Font.Name = 'MS Sans Serif'
  324.             Font.Style = []
  325.             ParentFont = False
  326.             TabOrder = 1
  327.             OnClick = ApplyFilterBtnClick
  328.           end
  329.           object PriorityCombo: TComboBox
  330.             Left = 72
  331.             Top = 40
  332.             Width = 49
  333.             Height = 21
  334.             ItemHeight = 13
  335.             Items.Strings = (
  336.               'Any'
  337.               '1'
  338.               '2'
  339.               '3')
  340.             TabOrder = 2
  341.             Text = 'Any'
  342.           end
  343.           object RemoveFilterBtn: TButton
  344.             Left = 72
  345.             Top = 104
  346.             Width = 49
  347.             Height = 17
  348.             Caption = 'Remove'
  349.             Font.Charset = ANSI_CHARSET
  350.             Font.Color = clWindowText
  351.             Font.Height = -11
  352.             Font.Name = 'MS Sans Serif'
  353.             Font.Style = []
  354.             ParentFont = False
  355.             TabOrder = 3
  356.             OnClick = RemoveFilterBtnClick
  357.           end
  358.           object TypeCombo: TComboBox
  359.             Left = 40
  360.             Top = 72
  361.             Width = 81
  362.             Height = 21
  363.             ItemHeight = 13
  364.             TabOrder = 4
  365.             Text = 'TypeCombo'
  366.           end
  367.         end
  368.       end
  369.       object DBLookupComboBox1: TDBLookupComboBox
  370.         Left = 86
  371.         Top = 48
  372.         Width = 147
  373.         Height = 21
  374.         DataField = 'Type'
  375.         DataSource = ToDoDataSource
  376.         KeyField = 'Type'
  377.         ListField = 'Type'
  378.         ListSource = CategoriesDataSource
  379.         TabOrder = 8
  380.       end
  381.       object LoadCatAddBtn: TButton
  382.         Left = 235
  383.         Top = 49
  384.         Width = 14
  385.         Height = 18
  386.         Hint = 'Load Category Manager'
  387.         Caption = '...'
  388.         Font.Charset = DEFAULT_CHARSET
  389.         Font.Color = clWindowText
  390.         Font.Height = -11
  391.         Font.Name = 'MS Sans Serif'
  392.         Font.Style = [fsBold]
  393.         ParentFont = False
  394.         ParentShowHint = False
  395.         ShowHint = True
  396.         TabOrder = 9
  397.         OnClick = LoadCatAddBtnClick
  398.       end
  399.     end
  400.   end
  401.   object ToDoDataSource: TDataSource
  402.     DataSet = ToDoTable
  403.     Left = 287
  404.     Top = 2
  405.   end
  406.   object ToDoTable: TTable
  407.     AfterInsert = ToDoTableAfterInsert
  408.     AfterScroll = ToDoTableAfterScroll
  409.     TableName = 'TodoDB1.DB'
  410.     Left = 259
  411.     Top = 2
  412.     object ToDoTableItemNumber: TAutoIncField
  413.       FieldName = 'Item Number'
  414.     end
  415.     object ToDoTableItem: TStringField
  416.       FieldName = 'Item'
  417.       Size = 100
  418.     end
  419.     object ToDoTablePriority: TSmallintField
  420.       FieldName = 'Priority'
  421.       MaxValue = 3
  422.       MinValue = 1
  423.     end
  424.     object ToDoTableType: TStringField
  425.       FieldName = 'Type'
  426.       Size = 30
  427.     end
  428.     object ToDoTableDateentered: TDateField
  429.       FieldName = 'Date entered'
  430.     end
  431.     object ToDoTableDatedue: TDateField
  432.       FieldName = 'Date due'
  433.     end
  434.     object ToDoTableDone: TBooleanField
  435.       FieldName = 'Done'
  436.     end
  437.     object ToDoTableNotes: TBlobField
  438.       FieldName = 'Notes'
  439.       BlobType = ftFmtMemo
  440.       Size = 240
  441.     end
  442.   end
  443.   object CategoriesDataSource: TDataSource
  444.     DataSet = CategoriesTable
  445.     Left = 376
  446.     Top = 2
  447.   end
  448.   object CategoriesTable: TTable
  449.     Active = True
  450.     TableName = 'Categories.db'
  451.     Left = 344
  452.     Top = 2
  453.     object CategoriesTableType: TStringField
  454.       FieldName = 'Type'
  455.       Required = True
  456.       Size = 30
  457.     end
  458.   end
  459. end
  460.