📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BackColor = &H00C0FFFF&
Caption = "显示波形"
ClientHeight = 9150
ClientLeft = 60
ClientTop = 465
ClientWidth = 10785
LinkTopic = "Form1"
ScaleHeight = 9150
ScaleWidth = 10785
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame2
BackColor = &H00C0FFFF&
Caption = "差分滤波"
ForeColor = &H00000000&
Height = 1575
Left = 2280
TabIndex = 17
Top = 4800
Width = 6255
Begin VB.OptionButton Option24
BackColor = &H00C0FFFF&
Caption = "12"
Height = 400
Left = 4800
Style = 1 'Graphical
TabIndex = 29
Top = 1000
Width = 400
End
Begin VB.OptionButton Option23
BackColor = &H00C0FFFF&
Caption = "11"
Height = 400
Left = 4000
Style = 1 'Graphical
TabIndex = 28
Top = 1000
Width = 400
End
Begin VB.OptionButton Option22
BackColor = &H00C0FFFF&
Caption = "10"
Height = 400
Left = 3200
Style = 1 'Graphical
TabIndex = 27
Top = 1000
Width = 400
End
Begin VB.OptionButton Option21
BackColor = &H00C0FFFF&
Caption = "9"
Height = 400
Left = 2400
Style = 1 'Graphical
TabIndex = 26
Top = 1000
Width = 400
End
Begin VB.OptionButton Option20
BackColor = &H00C0FFFF&
Caption = "8"
Height = 400
Left = 1600
Style = 1 'Graphical
TabIndex = 25
Top = 1000
Width = 400
End
Begin VB.OptionButton Option19
BackColor = &H00C0FFFF&
Caption = "7"
Height = 400
Left = 800
Style = 1 'Graphical
TabIndex = 24
Top = 1000
Width = 400
End
Begin VB.OptionButton Option18
BackColor = &H00C0FFFF&
Caption = "6"
Height = 400
Left = 4800
Style = 1 'Graphical
TabIndex = 23
Top = 400
Width = 400
End
Begin VB.OptionButton Option17
BackColor = &H00C0FFFF&
Caption = "5"
Height = 400
Left = 4000
Style = 1 'Graphical
TabIndex = 22
Top = 400
Width = 400
End
Begin VB.OptionButton Option16
BackColor = &H00C0FFFF&
Caption = "4"
Height = 400
Left = 3200
Style = 1 'Graphical
TabIndex = 21
Top = 400
Width = 400
End
Begin VB.OptionButton Option15
BackColor = &H00C0FFFF&
Caption = "3"
Height = 400
Left = 2400
Style = 1 'Graphical
TabIndex = 20
Top = 400
Width = 400
End
Begin VB.OptionButton Option14
BackColor = &H00C0FFFF&
Caption = "2"
Height = 400
Left = 1600
Style = 1 'Graphical
TabIndex = 19
Top = 400
Width = 400
End
Begin VB.OptionButton Option13
BackColor = &H00C0FFFF&
Caption = "1"
Height = 400
Index = 0
Left = 800
Style = 1 'Graphical
TabIndex = 18
Top = 400
Width = 400
End
End
Begin VB.Frame Frame1
BackColor = &H00C0FFFF&
Caption = "差分"
Height = 1695
Left = 1920
TabIndex = 4
Top = 2760
Width = 7095
Begin VB.OptionButton Option12
BackColor = &H00C0FFFF&
Caption = "12"
Height = 400
Left = 6000
TabIndex = 16
Top = 1000
Width = 400
End
Begin VB.OptionButton Option11
BackColor = &H00C0FFFF&
Caption = "11"
Height = 400
Left = 5000
TabIndex = 15
Top = 1000
Width = 400
End
Begin VB.OptionButton Option10
BackColor = &H00C0FFFF&
Caption = "10"
Height = 400
Left = 4000
TabIndex = 14
Top = 1000
Width = 400
End
Begin VB.OptionButton Option9
BackColor = &H00C0FFFF&
Caption = "9"
Height = 400
Left = 3000
TabIndex = 13
Top = 1000
Width = 400
End
Begin VB.OptionButton Option8
BackColor = &H00C0FFFF&
Caption = "8"
Height = 400
Left = 2000
TabIndex = 12
Top = 1000
Width = 400
End
Begin VB.OptionButton Option7
BackColor = &H00C0FFFF&
Caption = "7"
Height = 400
Left = 1000
TabIndex = 11
Top = 1000
Width = 400
End
Begin VB.OptionButton Option6
BackColor = &H00C0FFFF&
Caption = "6"
Height = 400
Left = 6000
TabIndex = 10
Top = 400
Width = 400
End
Begin VB.OptionButton Option5
BackColor = &H00C0FFFF&
Caption = "5"
Height = 400
Left = 5000
TabIndex = 9
Top = 400
Width = 400
End
Begin VB.OptionButton Option4
BackColor = &H00C0FFFF&
Caption = "4"
Height = 400
Left = 4000
TabIndex = 8
Top = 400
Width = 400
End
Begin VB.OptionButton Option3
BackColor = &H00C0FFFF&
Caption = "3"
Height = 400
Left = 3000
TabIndex = 7
Top = 400
Width = 400
End
Begin VB.OptionButton Option2
BackColor = &H00C0FFFF&
Caption = "2"
Height = 400
Left = 2000
TabIndex = 6
Top = 400
Width = 400
End
Begin VB.OptionButton Option1
BackColor = &H00C0FFFF&
Caption = "1"
Height = 400
Left = 1000
TabIndex = 5
Top = 400
Width = 400
End
End
Begin VB.HScrollBar HScroll1
Height = 255
LargeChange = 200
Left = 840
Max = 6399
SmallChange = 100
TabIndex = 3
Top = 2160
Width = 9135
End
Begin VB.CommandButton Command4
BackColor = &H00C0FFFF&
Caption = "返回"
Height = 945
Left = 3240
MaskColor = &H00FFFFFF&
Style = 1 'Graphical
TabIndex = 2
Top = 7200
Width = 1335
End
Begin VB.CommandButton Command3
BackColor = &H00C0FFFF&
Caption = "退出"
BeginProperty Font
Name = "楷体_GB2312"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 975
Left = 5520
MaskColor = &H00C0FFFF&
Style = 1 'Graphical
TabIndex = 1
Top = 7200
Width = 1335
End
Begin VB.PictureBox Picture1
BackColor = &H00FFFFFF&
Height = 1695
Left = 840
ScaleHeight = 1635
ScaleWidth = 9075
TabIndex = 0
Top = 480
Width = 9135
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Amin, Amax
Dim t(9000)
Private Sub Command2_Click()
Form2.Show
Form1.Hide
End Sub
Private Sub Command3_Click()
End
End Sub
Private Sub Command4_Click()
frm_HFECG2.Show
Form1.Hide
End Sub
Private Sub HScroll1_Change()
Static X As Integer
If HScroll1.Value > X Then
Picture1.Cls
X = HScroll1.Value
Picture1.Scale (X, Amax + Amax * 0.25)-(X + 2000, Amin + Amin * 0.25)
For k = X To X + 1999 Step 1
Picture1.Line (k, t(k))-(k + 1, t(k + 1)), vbBlue
Next k
Else
Picture1.Cls
X = HScroll1.Value
Picture1.Scale (X, Amax + Amax * 0.25)-(X + 2000, Amin + Amin * 0.25)
For k = X To X + 1999 Step 1
Picture1.Line (k, t(k))-(k + 1, t(k + 1)), vbBlue
Next k
End If
End Sub
Private Sub Option1_Click()
For i = 0 To 8400
t(i) = rb1(i)
Next i
Picture1.Cls
Amin = t(0): Amax = t(0):
For i = 1 To 8400
If t(i) < Amin Then
Amin = t(i)
End If
If t(i) > Amax Then
Amax = t(i)
End If
Next i
Picture1.Scale (0, Amax + Amax * 0.25)-(2000, Amin + Amin * 0.25)
For n = 1 To 1999 Step 1
Picture1.Line (n, t(n))-(n + 1, t(n + 1)), vbBlue
Next n
End Sub
Private Sub Option10_Click()
For i = 0 To 8400
t(i) = rb10(i)
Next i
Picture1.Cls
Amin = t(0): Amax = t(0):
For i = 1 To 8400
If t(i) < Amin Then
Amin = t(i)
End If
If t(i) > Amax Then
Amax = t(i)
End If
Next i
Picture1.Scale (0, Amax + Amax * 0.25)-(2000, Amin + Amin * 0.25)
For n = 1 To 1999 Step 1
Picture1.Line (n, t(n))-(n + 1, t(n + 1))
Next n
End Sub
Private Sub Option11_Click()
For i = 0 To 8400
t(i) = rb11(i)
Next i
Picture1.Cls
Amin = t(0): Amax = t(0):
For i = 1 To 8400
If t(i) < Amin Then
Amin = t(i)
End If
If t(i) > Amax Then
Amax = t(i)
End If
Next i
Picture1.Scale (0, Amax + Amax * 0.25)-(2000, Amin + Amin * 0.25)
For n = 1 To 1999 Step 1
Picture1.Line (n, t(n))-(n + 1, t(n + 1))
Next n
End Sub
Private Sub Option12_Click()
For i = 0 To 8400
t(i) = rb12(i)
Next i
Picture1.Cls
Amin = t(0): Amax = t(0):
For i = 1 To 8400
If t(i) < Amin Then
Amin = t(i)
End If
If t(i) > Amax Then
Amax = t(i)
End If
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -