📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
AutoRedraw = -1 'True
BackColor = &H00FFFFFF&
Caption = "图例"
ClientHeight = 9270
ClientLeft = 60
ClientTop = 345
ClientWidth = 10965
FillColor = &H00FFFFFF&
LinkTopic = "Form2"
ScaleHeight = 9270
ScaleWidth = 10965
StartUpPosition = 2 '屏幕中心
WindowState = 2 'Maximized
Begin VB.Frame Frame1
BackColor = &H00FFFFFF&
Caption = "V.A 分析点"
Height = 975
Left = 9600
TabIndex = 15
Top = 1680
Width = 2295
Begin VB.OptionButton Option2
BackColor = &H00FFFFFF&
Caption = "F点分析"
Height = 255
Left = 240
TabIndex = 17
Top = 600
Width = 1815
End
Begin VB.OptionButton Option1
BackColor = &H00FFFFFF&
Caption = "C点分析"
Height = 255
Left = 240
TabIndex = 16
Top = 240
Value = -1 'True
Width = 1815
End
End
Begin VB.CommandButton Command1
Caption = "动画"
Height = 375
Left = 12720
TabIndex = 14
Top = 2760
Width = 1095
End
Begin VB.TextBox Text3
Alignment = 1 'Right Justify
Height = 270
Left = 8040
TabIndex = 12
Text = ".5"
Top = 2400
Width = 1215
End
Begin VB.TextBox Text2
Alignment = 1 'Right Justify
Height = 270
Left = 8040
TabIndex = 11
Text = ".1"
Top = 2040
Width = 1215
End
Begin VB.TextBox Text1
Alignment = 1 'Right Justify
Height = 270
Left = 8040
TabIndex = 10
Text = "2"
Top = 1680
Width = 1215
End
Begin VB.PictureBox Picture4
BackColor = &H00FFFFFF&
Height = 3615
Left = 120
ScaleHeight = 3555
ScaleWidth = 14835
TabIndex = 7
Top = 7080
Width = 14895
End
Begin VB.CommandButton Command4
Caption = "生成曲线"
Height = 375
Left = 11520
TabIndex = 6
Top = 2760
Width = 1095
End
Begin VB.CommandButton Command3
Caption = "生成坐标"
Height = 375
Left = 10320
TabIndex = 5
Top = 2760
Width = 1095
End
Begin VB.PictureBox Picture3
BackColor = &H00FFFFFF&
Height = 3615
Left = 120
ScaleHeight = 3555
ScaleWidth = 14835
TabIndex = 4
Top = 3360
Width = 14895
End
Begin VB.PictureBox Picture2
BackColor = &H00FFFFFF&
Height = 3135
Left = 3360
ScaleHeight = 3075
ScaleWidth = 3195
TabIndex = 3
Top = 120
Width = 3255
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 375
Left = 13920
TabIndex = 1
Top = 2760
Width = 1095
End
Begin VB.PictureBox Picture1
BackColor = &H00FFFFFF&
Height = 3135
Left = 120
ScaleHeight = 3075
ScaleWidth = 3075
TabIndex = 0
Top = 120
Width = 3135
End
Begin VB.Label Label4
BackColor = &H00FFFFFF&
Caption = "Label4"
Height = 735
Left = 9600
TabIndex = 13
Top = 1080
Width = 5535
End
Begin VB.Label Label3
BackColor = &H00FFFFFF&
Caption = "1、位置曲线: 2、速度曲线: 3、加速曲线:"
Height = 975
Left = 6720
TabIndex = 9
Top = 1680
Width = 1215
End
Begin VB.Label Label2
BackColor = &H00FFFFFF&
Caption = "输入各个曲线欲详细显示的比例:(点击曲线可以显示详细图形)"
Height = 495
Left = 6720
TabIndex = 8
Top = 1080
Width = 2775
End
Begin VB.Label Label1
BackColor = &H00FFFFFF&
Caption = "Label1"
Height = 735
Left = 6720
TabIndex = 2
Top = 120
Width = 8295
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form6.Show
End Sub
Private Sub Command2_Click()
Unload Me
linkages.Visible = True
End Sub
Private Sub Command3_Click()
Me.Picture1.Cls
Me.Picture2.Cls
Me.Picture3.Cls
Me.Picture4.Cls
Me.Picture1.DrawStyle = 0
Me.Picture2.DrawStyle = 0
bi = Me.Text1.Text
bi2 = Me.Text2.Text
bi3 = Me.Text3.Text
Picture1.DrawWidth = 1
Picture2.DrawWidth = 1
Picture3.DrawWidth = 1
Picture4.DrawWidth = 1
zuobiao1
zuobiao2
zuobiao3
linkages.getvalue
linkages.jisuan
End Sub
Private Sub Command4_Click()
linkages.getvalue
Picture1.DrawWidth = 2
Picture2.DrawWidth = 2 '将图片2的绘图变粗,为了更好的看出曲线
Picture3.DrawWidth = 2
Picture4.DrawWidth = 2
'Dim tempx, tempy, j As Double
Dim i As Long
Dim t21, t22, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12 As Double
'tempx = Int(linkages.XC) '将第一个xc给temp
'tempy = Int(linkages.YC)
j = 0
i = 0
Picture3.Scale (linkages.Y1 * 180 / 3.14159265358979 - 20, 100 * bi2)-(linkages.Y1 * 180 / 3.14159265358979 + linkages.Text10 * 360 + 20, -100 * bi2)
Picture4.Scale (linkages.Y1 * 180 / 3.14159265358979 - 20, 100 * bi3)-(linkages.Y1 * 180 / 3.14159265358979 + linkages.Text10 * 360 + 20, -100 * bi3)
Do While i < linkages.num + 2
i = i + 1
linkages.jisuan
Picture1.Scale (-10 * bi, 10 * bi)-(10 * bi, -10 * bi)
If t21 = 0 Then
t21 = linkages.XF
t22 = linkages.YF
End If
Picture1.Line (linkages.XF, linkages.YF)-(t21, t22)
t21 = linkages.XF
t22 = linkages.YF
Picture2.Scale (-10 * bi, 10 * bi)-(10 * bi, -10 * bi)
'Picture2.PSet (linkages.XC, linkages.YC)
'Picture3.PSet (linkages.Y1 * 180 / 3.14159265358979, linkages.Vcx)
'Picture4.PSet (linkages.Y1 * 180 / 3.14159265358979, linkages.AC) '~~~~~~~~~~~~~~~~~~~~~~》?????
If t1 = 0 Then
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -