VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Customed Grid w/ Multiple Capabilites for Data Search and Entry. Requirements: ActiveX Control w/ M

John/Phred/Cyrus Lacaba  (2 Submissions)   OLE/COM/DCOM/Active-X   VB 6.0   Unknown Difficulty   Sun 14th May 2006   Mon 8th February 2021

Customed Grid w/ Multiple Capabilites for Data Search and Entry. Requirements: ActiveX Control w/ MSFlexgrid Ctrl, Frame Ctrl, Image

API Declarations


'Program Title:CoolFlex OCX
'Date : 27 July 2001
'Author: John
'Requirement:Microsoft DAO library
'select Microsoft DAO .... in Project->Reference first
'Note:
'This is based off the EasyFlex control submitted by Joe (Email: [email protected])
'Many properties and methods were added
'16 Aug 2001 - added several more properties and methods to the control


'Program Title:CoolFlex OCX
'Date : 21 Feb 2003, 22 Apr 2003
'Author: Phred
'This is based off the CoolFlex control submitted by John ([email protected])
'Added Button to grid - use CellButtonClick in your form to control what happens when button
' is clicked.
'Most of this is from John's work. I only added the eButton routines. I could have used an
' event when the row was left but a "Save" button is more intuitive.


'Program Title:CoolFlex OCX
'Date : 9 May 2006, 10 May 2006
'Author: Cyrus Lacaba - Death ®
'Place: Las Piñas City, Philippines
'This is based off the CoolFlex control submitted by John ([email protected]) and Phred
'Most of this is from John's and Phred's work.
'I only added validation for numeric and alpha-numeric entry on Text Box, autoselect on Combo Box, and Date/Time Picker


Option Explicit
Private MyDataName As Database
Private MyRecord As Long 'var for total record
Private MyRecordPos As Long 'var for record pos
Private AutoFix As Boolean 'var for automatic fixed
Private ModifyWidth As Long
Private MyAlignment As AlignmentSettings 'var for alignment setting
Private MyEdit As Boolean 'var for edit flexgrid
Private LoadRecord As Boolean 'var for specify wheter record is loading or not
Private ColumnType() As CoolFlexColType
Private SetColumnTypeArray As Boolean
Private LastCol As Long

Private ComboBoxCount As Integer
Private ComboBoxIndex As Integer
Private m_ColSel As Long

Private mLaunchForm As String
Private SortOnHeader As Boolean
Private SortOnHeaderValue As CoolFlexSort
Private m_DecimalEntry As Boolean
Private m_lngpopulated&

'-----------------------
'Appended by Cyrus for Auto Select Combo
Private a As New Collection
Private b As New Collection
Private lngpopulated&
Private strconcat$
'-----------------------
Private bIsTime As Boolean

Private m_collection() As String

'component activity
Public Event Click()
Public Event EnterCell(Rowsel As Long, Colsel As Long, Value As String)
Public Event DblClick()
Public Event LeaveCell()
Public Event RowColChange()
Public Event CellComboBoxClick(ColIndex As Long, Value As String)
Public Event CellComboBoxChange(ColIndex As Long)
Public Event CellCheckBoxClick(ColIndex As Long, Value As Integer)
Public Event CellButtonClick(RowIndex As Long, Value As Integer)

Public Event CellDateChange(Index As Integer) 'Ian 4/26/06
Public Event CellDateClick(Index As Integer) 'Ian 4/26/06
Public Event CellDateKeyPress(Index As Integer, KeyAscii As Integer) 'Ian 4/26/06
Public Event CellDateKeyDown(Index As Integer, KeyCode As Integer, Shift As Integer) 'Ian 4/26/06



Public Enum CoolFlexGridLines
GridFlat = 1
GridInset = 2
GridNone = 0
GridRaised = 3
End Enum

Public Enum CoolFlexScrollBar
ScrollBarBoth = 3
ScrollBarHorizontal = 1
ScrollBarNone = 0
ScrollBarVertical = 2
End Enum

Public Enum CoolFlexSort
SortNone = 0
SortGenericAscending = 1
SortGenericDescending = 2
SortNumericAscending = 3
SortNumericDescending = 4
SortStringNoCaseAsending = 5
SortNoCaseDescending = 6
SortStringAscending = 7
SortStringDescending = 8
End Enum

Public Enum CoolFlexColType
etextbox = 0
eCheckbox = 1
eCombobox = 2
eButton = 3
eDatePicker = 4
eTimePicker = 5
End Enum
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Rate Customed Grid w/ Multiple Capabilites for Data Search and Entry. Requirements: ActiveX Control w/ M (2(2 Vote))
Customed Grid w/ Multiple Capabilites for Data Search and Entry. Requirements: ActiveX Control w/ M.bas

Customed Grid w/ Multiple Capabilites for Data Search and Entry. Requirements: ActiveX Control w/ M Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters