📄 form1.frm
字号:
VERSION 5.00
Object = "{9BD6A640-CE75-11D1-AF04-204C4F4F5020}#2.0#0"; "mo20.ocx"
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 8010
ClientLeft = 165
ClientTop = 735
ClientWidth = 10500
LinkTopic = "Form1"
ScaleHeight = 8010
ScaleWidth = 10500
StartUpPosition = 3 '窗口缺省
Begin MapObjects2.Map Map1
Height = 6615
Left = 120
TabIndex = 0
Top = 1080
Width = 9855
_Version = 131072
_ExtentX = 17383
_ExtentY = 11668
_StockProps = 225
BackColor = 16777215
BorderStyle = 1
Contents = "Form1.frx":0000
End
Begin VB.Menu aa
Caption = "biaozhu "
Begin VB.Menu tabl
Caption = "标注"
End
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub tabl_Click()
Dim dc As New DataConnection
dc.Database = App.Path ' +"\..\"+"YNprj"
If Not dc.Connect Then
MsgBox "no data!"
End
End If
Set layer = New MapLayer
Set layer.GeoDataset = dc.FindGeoDataset("云南县界prj")
layer.Symbol.Color = moRed
layer.Symbol.Size = 5
layer.Symbol.Style = 2
Set layer.Renderer = New MapObjects2.LabelRenderer
layer.Renderer.Field = "Chinese"
layer.Renderer.Symbol(0).Height = 0 '50000
layer.Renderer.Symbol(0).Rotation = 45
Map1.Layers.Add layer
Map1.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -