📄 form1.frm
字号:
VERSION 5.00
Object = "{9BD6A640-CE75-11D1-AF04-204C4F4F5020}#2.0#0"; "Mo20.ocx"
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 6885
ClientLeft = 60
ClientTop = 450
ClientWidth = 8715
LinkTopic = "Form1"
ScaleHeight = 6885
ScaleWidth = 8715
StartUpPosition = 3 '窗口缺省
Begin MapObjects2.Map Map1
Height = 5655
Left = 240
TabIndex = 0
Top = 600
Width = 8055
_Version = 131072
_ExtentX = 14208
_ExtentY = 9975
_StockProps = 225
BackColor = 16777215
BorderStyle = 1
Contents = "Form1.frx":0000
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim Sym As New MapObjects2.Symbol
Dim Pt As MapObjects2.Point
End Sub
Private Sub Form_Load()
With Map1.TrackingLayer.Symbol(0)
.SymbolType = moPointSymbol
.Font = "ESRI Transportation & Municipal"
.Size = 20
.Style = moTrueTypeMarker
.Color = moRed
End With
End Sub
Private Sub Map1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Set Pt = Map1.ToMapPoint(X, Y)
Map1.TrackingLayer.Symbol(0).CharacterIndex = 103
Map1.TrackingLayer.AddEvent Pt, 0
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -