home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
vb_code1
/
db_grid
/
demo.bas
< prev
next >
Wrap
BASIC Source File
|
1994-03-03
|
3KB
|
98 lines
'DBT Grid Action Constants
'Copyright (C) - 1994, by Douglas A. Bebber
'
'These symbolic constants can be used in Visual Basic projects to
'symbolically specify DBT Grid specific information. A DBT_ has been
'placed before all constants in order to prevent possible conflicts with
'other products.
Global Const DBT_AbortEdit = 1
Global Const DBT_BeginEdit = 2
Global Const DBT_EndEdit = 3
Global Const DBT_DeleteColumn = 4
Global Const DBT_DeleteRow = 5
Global Const DBT_GetFirstSelectedColumn = 6
Global Const DBT_GetFirstSelectedRow = 7
Global Const DBT_GetNextSelectedColumn = 8
Global Const DBT_GetNextSelectedRow = 9
Global Const DBT_InsertColumn = 10
Global Const DBT_InsertRow = 11
Global Const DBT_MoveColumn = 12
Global Const DBT_MoveRow = 13
Global Const DBT_ResetCellColor = 14
Global Const DBT_ResetColumnColor = 15
Global Const DBT_ResetRowColor = 16
Global Const DBT_SetCellColor = 17
Global Const DBT_SetColumnColor = 18
Global Const DBT_SetRowColor = 19
'DBT Grid Reaction Codes:
Global Const DBT_Success = 0 'No error.
'Following are error codes
Global Const DBT_InvalidOperation = 1
Global Const DBT_InvalidAction = 2
Global Const DBT_InvalidCell = 3
Global Const DBT_InvalidColumnNumber = 4
Global Const DBT_InvalidRowNumber = 5
Global Const DBT_InvalidNumberOfColumns = 6
Global Const DBT_InvalidNumberOfRows = 7
Global Const DBT_InvalidColumnWidth = 8
Global Const DBT_True = 1
Global Const DBT_False = 0
Global Const DBT_Centered = 0
Global Const DBT_Left = 1
Global Const DBT_Right = 2
Global Const DBT_None = 0
Global Const DBT_Letters = 1
Global Const DBT_Numbers = 2
Global Const DBT_UserDefined = 3
Global Const DBT_SingleColumn = 1
Global Const DBT_MultiColumn = 2
Global Const DBT_RowButtons = 1
Global Const DBT_RowNumbers = 2
Global Const DBT_SingleRow = 1
Global Const DBT_MultiRow = 2
'DBT Grid Actions without the DBT_ prefix:
Global Const AbortEdit = 1
Global Const BeginEdit = 2
Global Const EndEdit = 3
Global Const DeleteColumn = 4
Global Const DeleteRow = 5
Global Const GetFirstSelectedColumn = 6
Global Const GetFirstSelectedRow = 7
Global Const GetNextSelectedColumn = 8
Global Const GetNextSelectedRow = 9
Global Const InsertColumn = 10
Global Const InsertRow = 11
Global Const MoveColumn = 12
Global Const MoveRow = 13
Global Const ResetCellColor = 14
Global Const ResetColumnColor = 15
Global Const ResetRowColor = 16
Global Const SetCellColor = 17
Global Const SetColumnColor = 18
Global Const SetRowColor = 19
'The following Global Variable will be used to keep
'track of which DBT Grid Edit Key is being processed
'The possible values are:
'
' 1 = AbortEditKey
' 2 = BeginEditKey
' 3 = EndEditKey
Global EditKey As Integer