www.pudn.com > 5101.zip > F5101CH.FRM
VERSION 5.00
Begin VB.Form F5101Ch
BorderStyle = 1 'Fixed Single
Caption = "选择通道"
ClientHeight = 4050
ClientLeft = 45
ClientTop = 330
ClientWidth = 5430
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4050
ScaleWidth = 5430
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Finish
Caption = "返 回"
Height = 495
Left = 3480
TabIndex = 19
Top = 1920
Width = 1575
End
Begin VB.CommandButton Reset
Caption = "重 置"
Height = 495
Left = 3480
TabIndex = 18
Top = 1200
Width = 1575
End
Begin VB.CommandButton Save
Caption = "保 存"
Height = 495
Left = 3480
TabIndex = 17
Top = 480
Width = 1575
End
Begin VB.Frame Frame1
Caption = " 选择通道 "
Height = 3615
Left = 360
TabIndex = 0
Top = 240
Width = 2775
Begin VB.CheckBox Ch_check
Caption = " 16"
Height = 375
Index = 15
Left = 1680
TabIndex = 16
Top = 3000
Value = 1 'Checked
Width = 855
End
Begin VB.CheckBox Ch_check
Caption = " 15"
Height = 375
Index = 14
Left = 1680
TabIndex = 15
Top = 2640
Value = 1 'Checked
Width = 855
End
Begin VB.CheckBox Ch_check
Caption = " 14"
Height = 375
Index = 13
Left = 1680
TabIndex = 14
Top = 2280
Value = 1 'Checked
Width = 855
End
Begin VB.CheckBox Ch_check
Caption = " 13"
Height = 375
Index = 12
Left = 1680
TabIndex = 13
Top = 1920
Value = 1 'Checked
Width = 855
End
Begin VB.CheckBox Ch_check
Caption = " 12"
Height = 375
Index = 11
Left = 1680
TabIndex = 12
Top = 1560
Value = 1 'Checked
Width = 855
End
Begin VB.CheckBox Ch_check
Caption = " 11"
Height = 375
Index = 10
Left = 1680
TabIndex = 11
Top = 1200
Value = 1 'Checked
Width = 855
End
Begin VB.CheckBox Ch_check
Caption = " 10"
Height = 375
Index = 9
Left = 1680
TabIndex = 10
Top = 840
Value = 1 'Checked
Width = 855
End
Begin VB.CheckBox Ch_check
Caption = " 9"
Height = 375
Index = 8
Left = 1680
TabIndex = 9
Top = 480
Value = 1 'Checked
Width = 855
End
Begin VB.CheckBox Ch_check
Caption = " 8"
Height = 375
Index = 7
Left = 480
TabIndex = 8
Top = 3000
Value = 1 'Checked
Width = 855
End
Begin VB.CheckBox Ch_check
Caption = " 7"
Height = 375
Index = 6
Left = 480
TabIndex = 7
Top = 2640
Value = 1 'Checked
Width = 855
End
Begin VB.CheckBox Ch_check
Caption = " 6"
Height = 375
Index = 5
Left = 480
TabIndex = 6
Top = 2280
Value = 1 'Checked
Width = 855
End
Begin VB.CheckBox Ch_check
Caption = " 5"
Height = 375
Index = 4
Left = 480
TabIndex = 5
Top = 1920
Value = 1 'Checked
Width = 855
End
Begin VB.CheckBox Ch_check
Caption = " 4"
Height = 375
Index = 3
Left = 480
TabIndex = 4
Top = 1560
Value = 1 'Checked
Width = 855
End
Begin VB.CheckBox Ch_check
Caption = " 3"
Height = 375
Index = 2
Left = 480
TabIndex = 3
Top = 1200
Value = 1 'Checked
Width = 855
End
Begin VB.CheckBox Ch_check
Caption = " 2"
Height = 375
Index = 1
Left = 480
TabIndex = 2
Top = 840
Value = 1 'Checked
Width = 855
End
Begin VB.CheckBox Ch_check
Caption = " 1"
Height = 375
Index = 0
Left = 480
TabIndex = 1
Top = 480
Value = 1 'Checked
Width = 855
End
End
End
Attribute VB_Name = "F5101Ch"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Ch_check_Click(Index As Integer)
Sele_Ch(Index) = Ch_check(Index)
End Sub
Private Sub Finish_Click()
Dim j As Integer
j = 0
For i = 0 To 15
If Sele_Ch(i) = 1 Then
j = j + 1
chs(j) = Sele_Ch(i)
End If
Next i
If j = 0 Then
MsgBox "没有选择通道,不能退出"
Else
Unload Me
End If
End Sub
Private Sub Form_Load()
For i = 0 To 15
Ch_check(i) = Sele_Ch(i)
Next i
End Sub
Private Sub Reset_Click()
n = f5101_LoadPara()
For i = 0 To 15
Ch_check(i) = Sele_Ch(i)
Next i
End Sub
Private Sub Save_Click()
Dim j As Integer
j = 0
For i = 0 To 15
If Sele_Ch(i) = 1 Then
j = j + 1
chs(j) = Sele_Ch(i)
End If
Next i
If j = 0 Then
MsgBox "没有选择通道,不能保存"
Else
n = f5101_SavePara()
End If
End Sub