📄 gaincode.frm
字号:
VERSION 5.00
Begin VB.Form frmGainCodes
Caption = "Gain code setting for individual channel"
ClientHeight = 4950
ClientLeft = 1260
ClientTop = 1395
ClientWidth = 7875
LinkTopic = "frmInit"
MaxButton = 0 'False
PaletteMode = 1 'UseZOrder
ScaleHeight = 4950
ScaleWidth = 7875
Begin VB.Frame frmGainList
Caption = "Channel 15"
Height = 855
Index = 15
Left = 6000
TabIndex = 32
Top = 3360
Width = 1815
Begin VB.ComboBox cmbGain
Height = 315
Index = 15
Left = 120
Style = 2 'Dropdown List
TabIndex = 33
Top = 360
Width = 1575
End
End
Begin VB.Frame frmGainList
Caption = "Channel 14"
Height = 855
Index = 14
Left = 4080
TabIndex = 30
Top = 3360
Width = 1815
Begin VB.ComboBox cmbGain
Height = 315
Index = 14
Left = 120
Style = 2 'Dropdown List
TabIndex = 31
Top = 360
Width = 1575
End
End
Begin VB.Frame frmGainList
Caption = "Channel 13"
Height = 855
Index = 13
Left = 2160
TabIndex = 28
Top = 3360
Width = 1815
Begin VB.ComboBox cmbGain
Height = 315
Index = 13
Left = 120
Style = 2 'Dropdown List
TabIndex = 29
Top = 360
Width = 1575
End
End
Begin VB.Frame frmGainList
Caption = "Channel 12"
Height = 855
Index = 12
Left = 120
TabIndex = 26
Top = 3360
Width = 1815
Begin VB.ComboBox cmbGain
Height = 315
Index = 12
Left = 120
Style = 2 'Dropdown List
TabIndex = 27
Top = 360
Width = 1575
End
End
Begin VB.Frame frmGainList
Caption = "Channel 11"
Height = 855
Index = 11
Left = 6000
TabIndex = 24
Top = 2280
Width = 1815
Begin VB.ComboBox cmbGain
Height = 315
Index = 11
Left = 120
Style = 2 'Dropdown List
TabIndex = 25
Top = 360
Width = 1575
End
End
Begin VB.Frame frmGainList
Caption = "Channel 10"
Height = 855
Index = 10
Left = 4080
TabIndex = 22
Top = 2280
Width = 1815
Begin VB.ComboBox cmbGain
Height = 315
Index = 10
Left = 120
Style = 2 'Dropdown List
TabIndex = 23
Top = 360
Width = 1575
End
End
Begin VB.Frame frmGainList
Caption = "Channel 9"
Height = 855
Index = 9
Left = 2160
TabIndex = 20
Top = 2280
Width = 1815
Begin VB.ComboBox cmbGain
Height = 315
Index = 9
Left = 120
Style = 2 'Dropdown List
TabIndex = 21
Top = 360
Width = 1575
End
End
Begin VB.Frame frmGainList
Caption = "Channel 8"
Height = 855
Index = 8
Left = 120
TabIndex = 18
Top = 2280
Width = 1815
Begin VB.ComboBox cmbGain
Height = 315
Index = 8
Left = 120
Style = 2 'Dropdown List
TabIndex = 19
Top = 360
Width = 1575
End
End
Begin VB.Frame frmGainList
Caption = "Channel 7"
Height = 855
Index = 7
Left = 6000
TabIndex = 16
Top = 1200
Width = 1815
Begin VB.ComboBox cmbGain
Height = 315
Index = 7
Left = 120
Style = 2 'Dropdown List
TabIndex = 17
Top = 360
Width = 1575
End
End
Begin VB.Frame frmGainList
Caption = "Channel 6"
Height = 855
Index = 6
Left = 4080
TabIndex = 14
Top = 1200
Width = 1815
Begin VB.ComboBox cmbGain
Height = 315
Index = 6
Left = 120
Style = 2 'Dropdown List
TabIndex = 15
Top = 360
Width = 1575
End
End
Begin VB.Frame frmGainList
Caption = "Channel 5"
Height = 855
Index = 5
Left = 2160
TabIndex = 12
Top = 1200
Width = 1815
Begin VB.ComboBox cmbGain
Height = 315
Index = 5
Left = 120
Style = 2 'Dropdown List
TabIndex = 13
Top = 360
Width = 1575
End
End
Begin VB.Frame frmGainList
Caption = "Channel 4"
Height = 855
Index = 4
Left = 120
TabIndex = 10
Top = 1200
Width = 1815
Begin VB.ComboBox cmbGain
Height = 315
Index = 4
Left = 120
Style = 2 'Dropdown List
TabIndex = 11
Top = 360
Width = 1575
End
End
Begin VB.Frame frmGainList
Caption = "Channel 3"
Height = 855
Index = 3
Left = 6000
TabIndex = 8
Top = 120
Width = 1815
Begin VB.ComboBox cmbGain
Height = 315
Index = 3
Left = 120
Style = 2 'Dropdown List
TabIndex = 9
Top = 360
Width = 1575
End
End
Begin VB.Frame frmGainList
Caption = "Channel 2"
Height = 855
Index = 2
Left = 4080
TabIndex = 6
Top = 120
Width = 1815
Begin VB.ComboBox cmbGain
Height = 315
Index = 2
Left = 120
Style = 2 'Dropdown List
TabIndex = 7
Top = 360
Width = 1575
End
End
Begin VB.Frame frmGainList
Caption = "Channel 1"
Height = 855
Index = 1
Left = 2160
TabIndex = 4
Top = 120
Width = 1815
Begin VB.ComboBox cmbGain
Height = 315
Index = 1
Left = 120
Style = 2 'Dropdown List
TabIndex = 5
Top = 360
Width = 1575
End
End
Begin VB.Frame frmGainList
Caption = "Channel 0"
Height = 855
Index = 0
Left = 120
TabIndex = 2
Top = 120
Width = 1815
Begin VB.ComboBox cmbGain
Height = 315
Index = 0
ItemData = "GainCode.frx":0000
Left = 120
List = "GainCode.frx":0007
Style = 2 'Dropdown List
TabIndex = 3
Top = 360
Width = 1575
End
End
Begin VB.CommandButton butOk
Caption = "&OK"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 4920
TabIndex = 1
Top = 4320
Width = 1095
End
Begin VB.CommandButton butCancel
Caption = "&Cancel"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 6360
TabIndex = 0
Top = 4320
Width = 1095
End
End
Attribute VB_Name = "frmGainCodes"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Sub EnableItems(ByVal iStart As Integer, iStop As Integer, bEnabled As Boolean)
If iStop > 15 Then iStop = 15
If iStart < 0 Then iStart = 0
While iStart <= iStop
cmbGain(iStart).Enabled = bEnabled
iStart = iStart + 1
Wend
End Sub
Sub ClearItems(ByVal iStart As Integer, iStop As Integer)
If iStop > 15 Then iStop = 15
If iStart < 0 Then iStart = 0
While iStart <= iStop
cmbGain(iStart).Clear
iStart = iStart + 1
Wend
End Sub
Private Sub butCancel_Click()
Unload frmGainCodes
End Sub
Private Sub butOk_Click()
Dim i As Integer
'get selection
For i = frmInit.cmbStartChl.ListIndex To frmInit.cmbStartChl.ListIndex + frmInit.cmbChlCount.ListIndex
giGainCode(i) = cmbGain(i).ListIndex
Next i
Unload frmGainCodes
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -