📄 scale1.frm
字号:
VERSION 5.00
Begin VB.Form scaleform
Caption = "Form1"
ClientHeight = 2475
ClientLeft = 60
ClientTop = 390
ClientWidth = 3765
LinkTopic = "Form1"
ScaleHeight = 2475
ScaleWidth = 3765
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 615
Left = 1920
TabIndex = 2
Top = 1680
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 615
Left = 120
TabIndex = 1
Top = 1680
Width = 1335
End
Begin VB.TextBox Text1
Height = 375
Left = 1800
TabIndex = 0
Top = 720
Width = 1455
End
Begin VB.Label Label1
Caption = "位移放大倍数:"
Height = 255
Left = 240
TabIndex = 3
Top = 840
Width = 1335
End
End
Attribute VB_Name = "scaleform"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
scale1 = Val(Text1.Text)
If GraphType = 2 Then
GraphCan.Caption = "图像显示(位移图像,蓝色为变形后,位移扩大" + Str$(scale1) + "倍)"
GraphCan.Cls
mStructor.CalScale GraphCan
mStructor.DrawConstruct GraphCan, vbRed
mStructor.GetXYDis 1, scale1
mStructor.DrawConstructDis GraphCan, vbCyan
ElseIf GraphType = 5 Then
GraphCan.Cls
GraphCan.Caption = "结构位移渐变(蓝色为变形后,位移扩大" + Str$(scale1) + "倍)"
mStructor.CalScale GraphCan
MainForm.Timer1.Enabled = True
MainForm.Timer1.Interval = 100
End If
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Text1.Text = scale1
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -