📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form qxsj
Caption = "Form1"
ClientHeight = 9690
ClientLeft = 1635
ClientTop = 1500
ClientWidth = 8310
LinkTopic = "Form1"
ScaleHeight = 9690
ScaleWidth = 8310
Begin VB.CommandButton Command5
Caption = "复位"
Height = 375
Left = 6360
TabIndex = 20
Top = 3150
Width = 1455
End
Begin VB.CommandButton Command4
Caption = "退出"
Height = 495
Left = 6960
TabIndex = 18
Top = 360
Width = 735
End
Begin VB.Frame Frame4
Caption = "计算结果如下"
Height = 2895
Left = 600
TabIndex = 15
Top = 6360
Width = 7200
Begin VB.TextBox Text5
Height = 2295
Left = 480
Locked = -1 'True
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 19
Top = 360
Width = 6375
End
End
Begin VB.Frame Frame3
Caption = "Frame3"
Height = 2200
Left = 3240
TabIndex = 11
Top = 3600
Width = 4545
Begin VB.CommandButton Command3
Caption = "计算细部"
Height = 495
Left = 600
TabIndex = 14
Top = 1560
Width = 3435
End
Begin VB.CommandButton Command2
Caption = "计算主点里程"
Height = 495
Left = 600
TabIndex = 13
Top = 900
Width = 3435
End
Begin VB.CommandButton Command1
Caption = "计算曲线要素"
Height = 495
Left = 600
TabIndex = 12
Top = 240
Width = 3435
End
End
Begin VB.Frame Frame2
Caption = "Frame2"
Height = 1965
Left = 480
TabIndex = 10
Top = 3720
Width = 2295
Begin VB.TextBox Text6
Height = 270
Left = 1560
TabIndex = 17
Text = "20"
Top = 680
Width = 495
End
Begin VB.Label Label8
Caption = "曲线点间距c(m)"
Height = 255
Left = 120
TabIndex = 16
Top = 720
Width = 1335
End
End
Begin VB.Frame frame1
Caption = "参数"
Height = 1935
Left = 480
TabIndex = 1
Top = 1080
Width = 7275
Begin VB.TextBox Text8
Height = 270
Left = 5520
TabIndex = 22
Text = "23"
Top = 360
Width = 360
End
Begin VB.TextBox Text7
Height = 270
Left = 6240
TabIndex = 21
Text = "0"
Top = 360
Width = 600
End
Begin VB.TextBox Text4
Height = 270
Left = 5040
TabIndex = 9
Text = "162028.77"
Top = 1150
Width = 1560
End
Begin VB.TextBox Text3
Height = 270
Left = 2400
TabIndex = 8
Text = "110"
Top = 1150
Width = 975
End
Begin VB.TextBox Text2
Height = 270
Left = 4560
TabIndex = 7
Text = "48"
Top = 360
Width = 600
End
Begin VB.TextBox Text1
Height = 270
Left = 2280
TabIndex = 6
Text = "600"
Top = 360
Width = 975
End
Begin VB.Label Label11
Caption = "'"
Height = 255
Left = 5880
TabIndex = 25
Top = 360
Width = 375
End
Begin VB.Label Label10
Caption = """"
Height = 255
Left = 6960
TabIndex = 24
Top = 360
Width = 135
End
Begin VB.Label Label9
Caption = "°"
Height = 255
Left = 5280
TabIndex = 23
Top = 360
Width = 135
End
Begin VB.Label Label5
Caption = "交点里程 (m):"
Height = 375
Left = 3840
TabIndex = 5
Top = 1200
Width = 1695
End
Begin VB.Label Label4
Caption = "缓和曲线长度 l(m):"
Height = 375
Left = 600
TabIndex = 4
Top = 1200
Width = 1695
End
Begin VB.Label Label3
Caption = "偏角 α:"
Height = 375
Left = 3840
TabIndex = 3
Top = 360
Width = 1695
End
Begin VB.Label Label2
Caption = "圆曲线半径 R(m):"
Height = 375
Left = 600
TabIndex = 2
Top = 360
Width = 1695
End
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "有缓和曲线的圆曲线"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 400
Left = 2160
TabIndex = 0
Top = 360
Width = 3615
End
End
Attribute VB_Name = "qxsj"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
R = Text1.Text
L0 = Text3.Text
JD = Text4.Text
C = Text6.Text
Alpha = Radian(Text2.Text, Text8.Text, Text7.Text)
MainPtCalcu
Text5.Text = "切线长T:" & Format(T, "0.000") & vbCrLf & "曲线长L:" & Format(L, "0.000") & vbCrLf & "外矢距E:" & Format(E, "0.000") & vbCrLf & "切曲差q:" & Format(q, "0.000") & vbCrLf
End Sub
Private Sub Command2_Click()
MainPtCalcu
Text5.Text = Text5.Text & "直缓点ZH:" & Format(ZH, "0.000") & vbCrLf & "缓圆点HY:" & Format(HY, "0.000") & vbCrLf & "曲中点QZ:" & Format(QZ, "0.000") & vbCrLf & "圆缓点YH:" & Format(YH, "0.000") & vbCrLf & "缓直点HZ:" & Format(HZ, "0.000") & vbCrLf
End Sub
Private Sub command3_click()
DetailCalcu
Dim i As Integer
Dim Ang As Angle
Ang = SecToAng(HYBS)
Text5.Text = "ZH" & vbCrLf & Format(ZH, "0.00") & " 测站" & vbCrLf & "JD 0d 00" & Chr(39) & " 00" & Chr(34) & " 后视" & vbCrLf
For i = 0 To UBound(DetailH) - 1
With DetailH(i)
Text5.Text = Text5.Text & .pn & " " & .Ang.Degree & "d" & Format(.Ang.Minutes, " 00") & Chr(39) & Format(.Ang.Seconds, " 00") & Chr(34) & vbCrLf
End With
Next
With DetailH(i)
Text5.Text = Text5.Text & "HY" & vbCrLf & .pn & " " & .Ang.Degree & "d" & Format(.Ang.Minutes, " 00") & Chr(39) & Format(.Ang.Seconds, " 00") & Chr(34) & vbCrLf & "ZH " & Ang.Degree & "d" & Format(Ang.Minutes, " 00") & Chr(39) & Format(Ang.Seconds, " 00") & Chr(34) & " 后视" & vbCrLf
End With
For i = 0 To UBound(DetailY) - 1
With DetailY(i)
Text5.Text = Text5.Text & .pn & " " & .Ang.Degree & "d" & Format(.Ang.Minutes, " 00") & Chr(39) & Format(.Ang.Seconds, " 00") & Chr(34) & vbCrLf
End With
Next
With DetailY(i)
Text5.Text = Text5.Text & "QZ" & vbCrLf & Format(QZ, "0.00") & " " & .Ang.Degree & "d" & Format(.Ang.Minutes, " 00") & Chr(39) & Format(.Ang.Seconds, " 00")
End With
End Sub
Private Sub Command4_Click()
End
End Sub
Private Sub Command5_Click()
Text1.Text = "0"
Text2.Text = "0"
Text3.Text = "0"
Text4.Text = "0"
Text5.Text = "0"
Text6.Text = "0"
Text7.Text = "0"
Text8.Text = "0"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -