📄 frmgoto.frm
字号:
VERSION 5.00
Begin VB.Form FrmGoto
BorderStyle = 1 'Fixed Single
Caption = "坐标定位"
ClientHeight = 675
ClientLeft = 45
ClientTop = 330
ClientWidth = 2610
Icon = "FrmGoto.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 675
ScaleWidth = 2610
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command1
Caption = "定位"
Height = 615
Left = 1850
TabIndex = 4
Top = 15
Width = 735
End
Begin VB.TextBox Text2
Height = 270
Left = 600
TabIndex = 3
Top = 360
Width = 1215
End
Begin VB.TextBox Text1
Height = 270
Left = 600
TabIndex = 0
Top = 30
Width = 1215
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "Y坐标"
Height = 180
Left = 60
TabIndex = 2
Top = 405
Width = 450
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "X坐标"
Height = 180
Left = 60
TabIndex = 1
Top = 90
Width = 450
End
End
Attribute VB_Name = "FrmGoto"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim TempMapX As Double, TempMapY As Double
On Error Resume Next
TempMapX = Val(Text1.Text)
TempMapY = Val(Text2.Text)
FrmMain.MyMap.CenterX = TempMapX
FrmMain.MyMap.CenterY = TempMapY
Unload Me
End Sub
Private Sub Form_Load()
Text1.Text = Format(FrmMain.MyMap.CenterX, "#.000000")
Text2.Text = Format(FrmMain.MyMap.CenterY, "#.000000")
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -