?? 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 + -