📄 frmsubcell.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "*\A..\prjvhGrid.vbp"
Begin VB.Form frmSubcell
BackColor = &H00F6F6F6&
BorderStyle = 1 'Fixed Single
Caption = "vhGrid - SubCells"
ClientHeight = 6930
ClientLeft = 45
ClientTop = 435
ClientWidth = 11805
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6930
ScaleWidth = 11805
StartUpPosition = 1 'CenterOwner
Begin vhGrid.ucVHGrid ucVHGrid1
Height = 5955
Left = 135
TabIndex = 1
Top = 180
Width = 11490
_ExtentX = 20267
_ExtentY = 10504
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
AlphaBarTransparency= 70
ForeColor = 0
GridLines = 0
HeaderDragDrop = 0 'False
BeginProperty HeaderFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
HeaderForeColor = 0
HeaderForeColorFocused= 0
HeaderForeColorPressed= 0
HeaderHeight = 20
HeaderHeightSizable= -1 'True
End
Begin VB.CommandButton cmdPopulate
Caption = "Populate"
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 700
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 420
Left = 9495
TabIndex = 0
Top = 6210
Width = 2040
End
Begin MSComctlLib.ImageList imlHdr
Left = 0
Top = 540
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 24
ImageHeight = 24
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 5
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":0000
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":17EA
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":2FD4
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":47BE
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":5FA8
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.ImageList iml32
Left = 0
Top = 0
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 13
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":7792
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":9DDC
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":C426
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":DC10
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":1025A
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":128A4
Key = ""
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":14EEE
Key = ""
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":17538
Key = ""
EndProperty
BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":19B82
Key = ""
EndProperty
BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":1C1CC
Key = ""
EndProperty
BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":1E816
Key = ""
EndProperty
BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":20E60
Key = ""
EndProperty
BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmSubcell.frx":234AA
Key = ""
EndProperty
EndProperty
End
End
Attribute VB_Name = "frmSubcell"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private m_lRowCount As Long
Private m_lSkinStyle As Long
Private m_lDecoration As Long
Private m_lDecColor As Long
Private m_lDecOffset As Long
Private m_lCustomClr(15) As Long
Private m_clblDesc As clsODControl
Private m_clblBck As clsODControl
Private WithEvents m_coptEdit0 As clsODControl
Attribute m_coptEdit0.VB_VarHelpID = -1
Private WithEvents m_coptEdit1 As clsODControl
Attribute m_coptEdit1.VB_VarHelpID = -1
Private WithEvents m_coptEdit2 As clsODControl
Attribute m_coptEdit2.VB_VarHelpID = -1
Private WithEvents m_cmbSave As clsODControl
Attribute m_cmbSave.VB_VarHelpID = -1
Private WithEvents m_chkOptn0 As clsODControl
Attribute m_chkOptn0.VB_VarHelpID = -1
Private WithEvents m_chkOptn1 As clsODControl
Attribute m_chkOptn1.VB_VarHelpID = -1
Private Sub m_coptEdit0_Click()
If m_coptEdit0.Checked Then
m_coptEdit1.Checked = False
m_coptEdit1.Refresh
m_coptEdit2.Checked = False
m_coptEdit2.Refresh
ucVHGrid1.CellEdit = True
ucVHGrid1.AdvancedEdit = False
End If
End Sub
Private Sub m_coptEdit1_Click()
If m_coptEdit1.Checked Then
m_coptEdit0.Checked = False
m_coptEdit0.Refresh
m_coptEdit2.Checked = False
m_coptEdit2.Refresh
ucVHGrid1.CellEdit = False
ucVHGrid1.AdvancedEdit = True
End If
End Sub
Private Sub m_coptEdit2_Click()
If m_coptEdit2.Checked Then
m_coptEdit0.Checked = False
m_coptEdit0.Refresh
m_coptEdit1.Checked = False
m_coptEdit1.Refresh
ucVHGrid1.CellEdit = False
ucVHGrid1.AdvancedEdit = False
End If
End Sub
Private Sub Form_Load()
Dim lX As Long
Dim lCt As Long
With ucVHGrid1
lX = (.Width / Screen.TwipsPerPixelX) / 8
m_lSkinStyle = 3
'/* auto set draw after last cell is loaded
.FastLoad = True
'/* add header icons
.InitImlHeader 24, 24
For lCt = 1 To 5
.ImlHeaderAddIcon imlHdr.ListImages.Item(lCt).Picture
Next lCt
'/* add row icons
.InitImlRow 32, 32
For lCt = 1 To 12
.ImlRowAddIcon iml32.ListImages(lCt).Picture
Next lCt
'/* add columns
.ColumnAdd 0, "", (lX * 0.3), ecaColumnLeft, 1, ecsSortIcon
.ColumnAdd 1, "Media Type", (lX * 1.5), ecaColumnLeft, 2, ecsSortDefault
.ColumnAdd 2, "Title and Author", (lX * 1.5), ecaColumnLeft, 0, ecsSortDefault
.ColumnAdd 3, "Media Sample", (lX * 2.4), ecaColumnLeft, 3, ecsSortDefault
.ColumnAdd 4, "Statistics", (lX * 2), ecaColumnLeft, 4, ecsSortDefault
'/* column tooltips
.ColumnTipColor = &HC4B0A2
.ColumnTipOffsetColor = &HF1DDCF
.ColumnTipGradient = True
.ColumnTipMultiline = True
.ColumnTipDelayTime = 1.5
.ColumnTipTransparency = 180
.ColumnTipHint(1) = "Media family of found object"
.ColumnTipHint(2) = "Search result Title and Author"
.ColumnTipHint(3) = "Media sample data"
.ColumnTipHint(4) = "Media statistics and state information"
' Stop
'/* filter menu
.FilterBackColor = &HC4B0A2
.FilterOffsetColor = &HF1DDCF
.FilterControlColor = &HC4B0A2
.FilterForeColor = &H808080
.FilterGradient = True
.FilterTransparency = 140
.FilterAdd 1, "Led Zeppelin|U2|AC/DC|Alice In Chains|the Who"
.FilterAdd 3, "sun|floodin|yesterday"
'/* use xp colors: place near top
.XPColors = True
'/* no focus on first row
'.FirstRowReserved = True
'/* set the row height
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -