📄 main.frm
字号:
Map.Layers.Layer3.ShowNodes= 0 'False
Map.Layers.Layer3.ShowCentroids= 0 'False
Map.Layers.Layer3.ShowLineDirection= 0 'False
Map.Layers.Layer3.AutoLabel= 0 'False
Map.Layers.Layer3.DrawLabelsAfter= 0 'False
Map.Layers.Layer3.ZoomLayering= -1 'True
Map.Layers.Layer3.ZoomMin= 0
Map.Layers.Layer3.ZoomMax= 1700
Map.Layers.Layer3.DoOverrideStyle= 0 'False
Map.Layers.Layer3.LabelProperties.LabelMax= 100
Map.Layers.Layer3.LabelProperties.Overlap= 0 'False
Map.Layers.Layer3.LabelProperties.Duplicate= 0 'False
Map.Layers.Layer3.LabelProperties.Offset= 2
Map.Layers.Layer3.LabelProperties.LineType= 2
Map.Layers.Layer3.LabelProperties.Zoom= 0 'False
Map.Layers.Layer3.LabelProperties.ZoomMin= 0
Map.Layers.Layer3.LabelProperties.ZoomMax= 10000
Map.Layers.Layer3.LabelProperties.Visible= -1 'True
Map.Layers.Layer3.LabelProperties.Position= 2
Map.Layers.Layer3.LabelProperties.Parallel= -1 'True
Map.Layers.Layer3.LabelProperties.LabelAlong= 1
Map.Layers.Layer3.LabelProperties.PartialSegments= 0 'False
Map.Layers.Layer3.LabelProperties.Style.TextFontBackColor= 16777215
Map.Layers.Layer3.LabelProperties.Style.SymbolChar= 0
BeginProperty Map.Layers.Layer3.LabelProperties.Style.TextFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Arial"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Map.Layers.Layer3.LabelProperties.Style.SymbolFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Map.Layers.Layer3.LabelProperties.Style.LineStyle= 1
Map.Layers.Layer3.LabelProperties.Style.LineWidth= 1
Map.Layers.Layer4.HasFileSpec= -1 'True
Map.Layers.Layer4.Skip= 0 'False
Map.Layers.Layer4.Path= "europe.tab"
Map.Layers.Layer4.Name= "Europe"
Map.Layers.Layer4.Visible= -1 'True
Map.Layers.Layer4.Selectable= -1 'True
Map.Layers.Layer4.Editable= 0 'False
Map.Layers.Layer4.ShowNodes= 0 'False
Map.Layers.Layer4.ShowCentroids= 0 'False
Map.Layers.Layer4.ShowLineDirection= 0 'False
Map.Layers.Layer4.AutoLabel= -1 'True
Map.Layers.Layer4.DrawLabelsAfter= 0 'False
Map.Layers.Layer4.ZoomLayering= 0 'False
Map.Layers.Layer4.ZoomMin= 0
Map.Layers.Layer4.ZoomMax= 0
Map.Layers.Layer4.DoOverrideStyle= 0 'False
Map.Layers.Layer4.LabelProperties.LabelMax= 100
Map.Layers.Layer4.LabelProperties.Overlap= 0 'False
Map.Layers.Layer4.LabelProperties.Duplicate= 0 'False
Map.Layers.Layer4.LabelProperties.Offset= 2
Map.Layers.Layer4.LabelProperties.LineType= 0
Map.Layers.Layer4.LabelProperties.Zoom= 0 'False
Map.Layers.Layer4.LabelProperties.ZoomMin= 0
Map.Layers.Layer4.LabelProperties.ZoomMax= 10000
Map.Layers.Layer4.LabelProperties.Visible= -1 'True
Map.Layers.Layer4.LabelProperties.Position= 0
Map.Layers.Layer4.LabelProperties.Parallel= -1 'True
Map.Layers.Layer4.LabelProperties.LabelAlong= 1
Map.Layers.Layer4.LabelProperties.PartialSegments= 0 'False
Map.Layers.Layer4.LabelProperties.Style.TextFontColor= 128
Map.Layers.Layer4.LabelProperties.Style.TextFontBackColor= 13696976
Map.Layers.Layer4.LabelProperties.Style.TextFontHalo= -1 'True
Map.Layers.Layer4.LabelProperties.Style.SymbolChar= 0
BeginProperty Map.Layers.Layer4.LabelProperties.Style.TextFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Map.Layers.Layer4.LabelProperties.Style.SymbolFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Map.Layers.Layer4.LabelProperties.Style.LineStyle= 1
Map.Layers.Layer4.LabelProperties.Style.LineWidth= 1
Map.Layers.Layer5.HasFileSpec= -1 'True
Map.Layers.Layer5.Skip= 0 'False
Map.Layers.Layer5.Path= "asia.tab"
Map.Layers.Layer5.Name= "Asia"
Map.Layers.Layer5.Visible= -1 'True
Map.Layers.Layer5.Selectable= -1 'True
Map.Layers.Layer5.Editable= 0 'False
Map.Layers.Layer5.ShowNodes= 0 'False
Map.Layers.Layer5.ShowCentroids= 0 'False
Map.Layers.Layer5.ShowLineDirection= 0 'False
Map.Layers.Layer5.AutoLabel= 0 'False
Map.Layers.Layer5.DrawLabelsAfter= 0 'False
Map.Layers.Layer5.ZoomLayering= 0 'False
Map.Layers.Layer5.ZoomMin= 0
Map.Layers.Layer5.ZoomMax= 0
Map.Layers.Layer5.DoOverrideStyle= -1 'True
Map.Layers.Layer5.OverrideStyle.TextFontBackColor= 16777215
Map.Layers.Layer5.OverrideStyle.SymbolType= 2
Map.Layers.Layer5.OverrideStyle.SupportsBitmapSymbols= -1 'True
Map.Layers.Layer5.OverrideStyle.SymbolVectorSize= 8
BeginProperty Map.Layers.Layer5.OverrideStyle.TextFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Map.Layers.Layer5.OverrideStyle.SymbolFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Map Symbols"
Size = 14.25
Charset = 2
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Map.Layers.Layer5.OverrideStyle.LineStyle= 1
Map.Layers.Layer5.OverrideStyle.LineWidth= 1
Map.Layers.Layer5.OverrideStyle.RegionColor= 13684944
Map.Layers.Layer5.OverrideStyle.LinePattern= 2
Map.Layers.Layer5.OverrideStyle.RegionBackColor= 16777215
Map.Layers.Layer5.OverrideStyle.RegionBorderStyle= 1
Map.Layers.Layer5.OverrideStyle.RegionBorderWidth= 1
Map.Layers.Layer5.LabelProperties.LabelMax= 100
Map.Layers.Layer5.LabelProperties.Overlap= 0 'False
Map.Layers.Layer5.LabelProperties.Duplicate= -1 'True
Map.Layers.Layer5.LabelProperties.Offset= 2
Map.Layers.Layer5.LabelProperties.LineType= 0
Map.Layers.Layer5.LabelProperties.Zoom= 0 'False
Map.Layers.Layer5.LabelProperties.ZoomMin= 0
Map.Layers.Layer5.LabelProperties.ZoomMax= 10000
Map.Layers.Layer5.LabelProperties.Visible= -1 'True
Map.Layers.Layer5.LabelProperties.Position= 0
Map.Layers.Layer5.LabelProperties.Parallel= -1 'True
Map.Layers.Layer5.LabelProperties.LabelAlong= 1
Map.Layers.Layer5.LabelProperties.PartialSegments= 0 'False
Map.Layers.Layer5.LabelProperties.Style.TextFontBackColor= 16777215
Map.Layers.Layer5.LabelProperties.Style.SymbolChar= 0
BeginProperty Map.Layers.Layer5.LabelProperties.Style.TextFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Arial"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Map.Layers.Layer5.LabelProperties.Style.SymbolFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Map.Layers.Layer5.LabelProperties.Style.LineStyle= 1
Map.Layers.Layer5.LabelProperties.Style.LineWidth= 1
Map.NumericCoordSys.ProjectionInfo= "Main.frx":0000
Map.DisplayCoordSys.ProjectionInfo= "Main.frx":0130
Map.Zoom = 5513.00000000001
Map.CenterX = 21.0560381574739
Map.CenterY = 53.7209152955863
FeatureEditMode = 1
End
Begin VB.Label Label1
Caption = "选择参数"
Height = 255
Left = 7560
TabIndex = 3
Top = 120
Width = 1575
End
Begin VB.Menu mnuView
Caption = "视图"
Begin VB.Menu mnuPan
Caption = "平移"
End
Begin VB.Menu mnuZoomIn
Caption = "放大"
End
Begin VB.Menu mnuZoomOut
Caption = "缩小"
End
Begin VB.Menu mnuGlobe
Caption = "全图"
End
End
Begin VB.Menu mnuMapX
Caption = "自带选择工具"
Begin VB.Menu mnuPoint
Caption = "点选"
End
Begin VB.Menu mnuRectangle
Caption = "矩形选择"
End
Begin VB.Menu mnuRadius
Caption = "圆形选择"
End
Begin VB.Menu mnuPolygon
Caption = "多边形选择"
End
End
Begin VB.Menu mnuCustom
Caption = "自定义选择工具"
Begin VB.Menu mnuCusPoint
Caption = "点选"
End
Begin VB.Menu mnuCusRectangle
Caption = "矩形选择"
End
Begin VB.Menu mnuCusRadius
Caption = "圆形选择"
End
Begin VB.Menu mnuCusPolygon
Caption = "多边形选择"
End
End
Begin VB.Menu mnuClear
Caption = "清除选择"
End
End
Attribute VB_Name = "Main"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Const CUSTOM_SEARCH_BY_POINT_TOOL As Integer = 11
Const CUSTOM_SELECT_BY_RECT_TOOL As Integer = 12
Const CUSTOM_SEARCH_WITHIN_DISTANCE_TOOL As Integer = 13
Const CUSTOM_SELECT_BY_REGION_TOOL As Integer = 14
'是否显示数据
Private bRefresh As Boolean
Private Sub Form_Load()
'自定义工具
Map1.CreateCustomTool CUSTOM_SEARCH_BY_POINT_TOOL, _
miToolTypePoint, miCrossCursor, _
miSelectPlusCursor, miSelectMinusCursor
Map1.CreateCustomTool CUSTOM_SELECT_BY_RECT_TOOL, _
miToolTypeMarquee, miRectSelectCursor, _
miSelectRectPlusCursor, miSelectRectMinusCursor
Map1.CreateCustomTool CUSTOM_SEARCH_WITHIN_DISTANCE_TOOL, _
miToolTypeCircle, miRadiusSelectCursor, _
miSelectRadiusPlusCursor, miSelectRadiusMinusCursor
Map1.CreateCustomTool CUSTOM_SELECT_BY_REGION_TOOL, _
miToolTypePolygon, miRegionSelectCursor, _
miSelectRegionPlusCursor, miSelectRegionMinusCursor
'搜索方式
Combo1.AddItem "miSearchTypePartiallyWithin"
Combo1.AddItem "miSearchTypeEntirelyWithin"
Combo1.AddItem "miSearchTypeCentroidWithin"
Combo1.ListIndex = 0
End Sub
Private Sub Map1_PolyToolUsed(ByVal ToolNum As Integer, ByVal Flags As Long, _
ByVal Points As Object, ByVal bShift As Boolean, _
ByVal bCtrl As Boolean, EnableDefault As Boolean)
'若用户未输入完毕多边形,则退出
If Flags <> miPolyToolEnd And Flags <> miPolyToolEndEscaped Then
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -