📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3165
ClientLeft = 60
ClientTop = 450
ClientWidth = 10950
LinkTopic = "Form1"
ScaleHeight = 3165
ScaleWidth = 10950
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "确定"
Height = 255
Left = 4920
TabIndex = 4
Top = 2640
Width = 1095
End
Begin VB.TextBox Text4
Height = 270
Left = 3720
TabIndex = 3
Top = 2640
Width = 975
End
Begin VB.TextBox Text3
Height = 270
Left = 2520
TabIndex = 2
Top = 2640
Width = 975
End
Begin VB.TextBox Text2
Height = 270
Left = 1320
TabIndex = 1
Top = 2640
Width = 975
End
Begin VB.TextBox Text1
Height = 270
Left = 120
TabIndex = 0
Top = 2640
Width = 975
End
Begin VB.Label Label6
Caption = "Y"
Height = 255
Left = 3720
TabIndex = 10
Top = 2400
Width = 255
End
Begin VB.Label Label5
Caption = "X"
Height = 255
Left = 2520
TabIndex = 9
Top = 2400
Width = 255
End
Begin VB.Label Label4
Caption = "Y"
Height = 255
Left = 1320
TabIndex = 8
Top = 2400
Width = 255
End
Begin VB.Label Label3
Caption = "X"
Height = 255
Left = 120
TabIndex = 7
Top = 2400
Width = 255
End
Begin VB.Label Label2
Caption = "小"
Height = 255
Left = 120
TabIndex = 6
Top = 1560
Width = 255
End
Begin VB.Label Label1
Caption = "大"
Height = 255
Left = 120
TabIndex = 5
Top = 600
Width = 255
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim X1 As Integer
Dim Y1 As Integer
Dim X2 As Integer
Dim Y2 As Integer
Private Sub Form_Click()
Form1.ScaleLeft = -200: Form1.ScaleTop = 250
Form1.ScaleWidth = 500: Form1.ScaleHeight = -400
Line (-180, 0)-(300, 0) '画x轴(前后,上下)(前后,上下)
Line (-180, 240)-(-180, 0) '画Y轴(前后,上下)(前后,上下)
CurrentX = -190: CurrentY = 0: Print 0 '标记坐标圆点
CurrentX = 280: CurrentY = -10: Print "x" '标记坐标X
CurrentX = -190: CurrentY = 240: Print "y" '标记坐标Y
End Sub
Private Sub Command1_Click()
Line (X1, Y1)-(X2, Y2)
X1 = Text1.Text
Y1 = Text2.Text
X2 = Text3.Text
Y2 = Text4.Text
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -