📄 系统_图形分析项目.frm
字号:
VERSION 5.00
Begin VB.Form XT_TxItem
BorderStyle = 1 'Fixed Single
Caption = "项目"
ClientHeight = 3960
ClientLeft = 3480
ClientTop = 1965
ClientWidth = 6495
Icon = "系统_图形分析项目.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3960
ScaleWidth = 6495
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command1
Caption = "确定"
Height = 345
Left = 5310
TabIndex = 10
Top = 2670
Width = 1095
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 345
Left = 5310
TabIndex = 9
Top = 3180
Width = 1095
End
Begin VB.CommandButton Command6
Caption = "全消"
Height = 300
Left = 4230
TabIndex = 8
Top = 3540
Width = 975
End
Begin VB.CommandButton Command5
Caption = "全选"
Height = 300
Left = 2790
TabIndex = 7
Top = 3540
Width = 975
End
Begin VB.ListBox Item
Height = 3210
Index = 1
ItemData = "系统_图形分析项目.frx":1042
Left = 2790
List = "系统_图形分析项目.frx":1044
Style = 1 'Checkbox
TabIndex = 4
Top = 270
Width = 2415
End
Begin VB.CheckBox Check1
Caption = "按横表头统计"
Height = 435
Left = 5340
TabIndex = 3
Top = 1650
Width = 885
End
Begin VB.CommandButton Command4
Caption = "全消"
Height = 300
Left = 1560
TabIndex = 2
Top = 3540
Width = 975
End
Begin VB.CommandButton Command3
Caption = "全选"
Height = 300
Left = 120
TabIndex = 1
Top = 3540
Width = 975
End
Begin VB.ListBox Item
Height = 3210
Index = 0
Left = 120
Style = 1 'Checkbox
TabIndex = 0
Top = 270
Width = 2415
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "竖表头:"
Height = 180
Left = 2730
TabIndex = 6
Top = 60
Width = 630
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "横表头:"
Height = 180
Left = 120
TabIndex = 5
Top = 60
Width = 630
End
End
Attribute VB_Name = "XT_TxItem"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Grid As vsFlexGrid
Public ChartCode As String
Dim tf As Boolean
Private Sub Check1_Click()
If Check1.Value = 0 Then
Check1.Caption = "按横表头统计"
Else
Check1.Caption = "按竖表头统计"
End If
End Sub
Private Sub Command1_Click()
Me.Tag = "T"
Me.Hide
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
Dim i As Integer
For i = 0 To Item(0).ListCount - 1
Item(0).Selected(i) = True
Next i
End Sub
Private Sub Command4_Click()
Dim i As Integer
For i = 0 To Item(0).ListCount - 1
Item(0).Selected(i) = False
Next i
End Sub
Private Sub Command5_Click()
Dim i As Integer
For i = 0 To Item(1).ListCount - 1
Item(1).Selected(i) = True
Next i
End Sub
Private Sub Command6_Click()
Dim i As Integer
For i = 0 To Item(1).ListCount - 1
Item(1).Selected(i) = False
Next i
End Sub
Private Sub Form_Activate()
Dim h As Integer, i As Integer
Dim aDo_Char As New Recordset
Set aDo_Char = Cw_DataEnvi.DataConnect.Execute("select * from XT_GridChart where Chart_Code='" & ChartCode & "'")
'------------------
If Item(0).ListCount = 0 Then
'Item(0).Clear
With Grid
'--------------
For i = aDo_Char!grid_FixedCols To .Cols - 1
Item(0).AddItem .TextMatrix(aDo_Char!grid_Fixedrows - 1, i)
Item(0).ItemData(h) = i
h = h + 1
Next
'---------------
End With
'--------
End If
'<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
'<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
If Item(1).ListCount = 0 Then
' Item(1).Clear
With Grid
'--------------
h = 0
For i = aDo_Char!grid_Fixedrows To .Rows - 1
Item(1).AddItem .TextMatrix(i, aDo_Char!grid_FixedCols - 1)
Item(1).ItemData(h) = i
h = h + 1
Next
'---------------
End With
End If
aDo_Char.Close
'---------------------
End Sub
Private Sub Form_Load()
tf = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -