home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code1 / db_grid / demo.bas < prev    next >
BASIC Source File  |  1994-03-03  |  3KB  |  98 lines

  1. 'DBT Grid Action Constants
  2. 'Copyright (C) - 1994, by Douglas A. Bebber
  3. '
  4. 'These symbolic constants can be used in Visual Basic projects to
  5. 'symbolically specify DBT Grid specific information. A DBT_ has been
  6. 'placed before all constants in order to prevent possible conflicts with
  7. 'other products.
  8.  
  9. Global Const DBT_AbortEdit = 1
  10. Global Const DBT_BeginEdit = 2
  11. Global Const DBT_EndEdit = 3
  12. Global Const DBT_DeleteColumn = 4
  13. Global Const DBT_DeleteRow = 5
  14. Global Const DBT_GetFirstSelectedColumn = 6
  15. Global Const DBT_GetFirstSelectedRow = 7
  16. Global Const DBT_GetNextSelectedColumn = 8
  17. Global Const DBT_GetNextSelectedRow = 9
  18. Global Const DBT_InsertColumn = 10
  19. Global Const DBT_InsertRow = 11
  20. Global Const DBT_MoveColumn = 12
  21. Global Const DBT_MoveRow = 13
  22. Global Const DBT_ResetCellColor = 14
  23. Global Const DBT_ResetColumnColor = 15
  24. Global Const DBT_ResetRowColor = 16
  25. Global Const DBT_SetCellColor = 17
  26. Global Const DBT_SetColumnColor = 18
  27. Global Const DBT_SetRowColor = 19
  28.  
  29.  
  30. 'DBT Grid Reaction Codes:
  31.  
  32. Global Const DBT_Success = 0    'No error.
  33. 'Following are error codes
  34. Global Const DBT_InvalidOperation = 1
  35. Global Const DBT_InvalidAction = 2
  36. Global Const DBT_InvalidCell = 3
  37. Global Const DBT_InvalidColumnNumber = 4
  38. Global Const DBT_InvalidRowNumber = 5
  39. Global Const DBT_InvalidNumberOfColumns = 6
  40. Global Const DBT_InvalidNumberOfRows = 7
  41. Global Const DBT_InvalidColumnWidth = 8
  42.  
  43.         
  44. Global Const DBT_True = 1
  45. Global Const DBT_False = 0
  46.  
  47. Global Const DBT_Centered = 0
  48. Global Const DBT_Left = 1
  49. Global Const DBT_Right = 2
  50. Global Const DBT_None = 0
  51. Global Const DBT_Letters = 1
  52. Global Const DBT_Numbers = 2
  53. Global Const DBT_UserDefined = 3
  54. Global Const DBT_SingleColumn = 1
  55. Global Const DBT_MultiColumn = 2
  56. Global Const DBT_RowButtons = 1
  57. Global Const DBT_RowNumbers = 2
  58. Global Const DBT_SingleRow = 1
  59. Global Const DBT_MultiRow = 2
  60.  
  61.  
  62.  
  63.         
  64.  
  65.  
  66.  
  67. 'DBT Grid Actions without the DBT_ prefix:
  68.  
  69. Global Const AbortEdit = 1
  70. Global Const BeginEdit = 2
  71. Global Const EndEdit = 3
  72. Global Const DeleteColumn = 4
  73. Global Const DeleteRow = 5
  74. Global Const GetFirstSelectedColumn = 6
  75. Global Const GetFirstSelectedRow = 7
  76. Global Const GetNextSelectedColumn = 8
  77. Global Const GetNextSelectedRow = 9
  78. Global Const InsertColumn = 10
  79. Global Const InsertRow = 11
  80. Global Const MoveColumn = 12
  81. Global Const MoveRow = 13
  82. Global Const ResetCellColor = 14
  83. Global Const ResetColumnColor = 15
  84. Global Const ResetRowColor = 16
  85. Global Const SetCellColor = 17
  86. Global Const SetColumnColor = 18
  87. Global Const SetRowColor = 19
  88. 'The following Global Variable will be used to keep
  89. 'track of which DBT Grid Edit Key is being processed
  90. 'The possible values are:
  91. '
  92. '   1 = AbortEditKey
  93. '   2 = BeginEditKey
  94. '   3 = EndEditKey
  95.  
  96. Global EditKey As Integer
  97.  
  98.