⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.frm

📁 MapX示例程序:编辑特征示例
💻 FRM
字号:
VERSION 5.00
Object = "{E760686B-BC9E-4802-9ECF-175FDF4062CE}#5.0#0"; "MAPX50.DLL"
Begin VB.Form Main 
   Caption         =   "MapX示例程序"
   ClientHeight    =   5940
   ClientLeft      =   1140
   ClientTop       =   1470
   ClientWidth     =   7515
   LinkTopic       =   "Form1"
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   5940
   ScaleWidth      =   7515
   Begin VB.CommandButton Command5 
      Caption         =   "全图"
      Height          =   375
      Left            =   3380
      TabIndex        =   5
      Top             =   0
      Width           =   855
   End
   Begin MapXLib.Map Map1 
      Height          =   5295
      Left            =   0
      TabIndex        =   4
      Top             =   480
      Width           =   7455
      _Version        =   500012
      _ExtentX        =   13150
      _ExtentY        =   9340
      _StockProps     =   1
      MapCatalog.GeoDictionary=   "GeoDictionary"
      GeoSet          =   "Empty GeosetName {9A9AC2F4-8375-44d1-BCEB-476AE986F190}"
      GeoSetUserName  =   "United States"
      DefaultStyle.TextFontBackColor=   16777215
      DefaultStyle.SupportsBitmapSymbols=   -1  'True
      DefaultStyle.SymbolChar=   55
      DefaultStyle.SymbolFontBackColor=   16777215
      BeginProperty DefaultStyle.TextFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Arial"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty DefaultStyle.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
      DefaultStyle.LineStyle=   1
      DefaultStyle.LineWidth=   1
      DefaultStyle.RegionColor=   16777215
      DefaultStyle.LinePattern=   2
      DefaultStyle.RegionBackColor=   16777215
      DefaultStyle.RegionBorderStyle=   1
      DefaultStyle.RegionBorderWidth=   1
      Title.Visible   =   0   'False
      Title.Text      =   "Empty Title {01A9504B-CE13-4415-A5A0-51D8C2F15204}"
      Title.Style.TextFontBackColor=   16777215
      Title.Style.TextFontOpaque=   -1  'True
      Title.Style.SymbolChar=   0
      BeginProperty Title.Style.TextFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Arial"
         Size            =   23.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Title.Style.SymbolFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Arial"
         Size            =   23.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Title.X         =   2485
      Title.Y         =   353
      Map.Layers.Count=   2
      Map.Layers.Layer0.HasFileSpec=   -1  'True
      Map.Layers.Layer0.Skip=   0   'False
      Map.Layers.Layer0.Path=   "EUR_CAPS.TAB"
      Map.Layers.Layer0.Name=   "Europe Capitals"
      Map.Layers.Layer0.Visible=   -1  'True
      Map.Layers.Layer0.Selectable=   -1  'True
      Map.Layers.Layer0.Editable=   0   'False
      Map.Layers.Layer0.ShowNodes=   0   'False
      Map.Layers.Layer0.ShowCentroids=   0   'False
      Map.Layers.Layer0.ShowLineDirection=   0   'False
      Map.Layers.Layer0.AutoLabel=   0   'False
      Map.Layers.Layer0.DrawLabelsAfter=   0   'False
      Map.Layers.Layer0.ZoomLayering=   0   'False
      Map.Layers.Layer0.ZoomMin=   1
      Map.Layers.Layer0.ZoomMax=   5
      Map.Layers.Layer0.DoOverrideStyle=   0   'False
      Map.Layers.Layer0.LabelProperties.LabelMax=   100
      Map.Layers.Layer0.LabelProperties.Overlap=   0   'False
      Map.Layers.Layer0.LabelProperties.Duplicate=   -1  'True
      Map.Layers.Layer0.LabelProperties.Offset=   2
      Map.Layers.Layer0.LabelProperties.LineType=   2
      Map.Layers.Layer0.LabelProperties.Zoom=   0   'False
      Map.Layers.Layer0.LabelProperties.ZoomMin=   0
      Map.Layers.Layer0.LabelProperties.ZoomMax=   10000
      Map.Layers.Layer0.LabelProperties.Visible=   -1  'True
      Map.Layers.Layer0.LabelProperties.Position=   5
      Map.Layers.Layer0.LabelProperties.Parallel=   -1  'True
      Map.Layers.Layer0.LabelProperties.LabelAlong=   1
      Map.Layers.Layer0.LabelProperties.PartialSegments=   0   'False
      Map.Layers.Layer0.LabelProperties.Style.TextFontBackColor=   16777215
      Map.Layers.Layer0.LabelProperties.Style.SymbolChar=   0
      BeginProperty Map.Layers.Layer0.LabelProperties.Style.TextFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "System"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Map.Layers.Layer0.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.Layer0.LabelProperties.Style.LineStyle=   1
      Map.Layers.Layer0.LabelProperties.Style.LineWidth=   1
      Map.Layers.Layer1.HasFileSpec=   -1  'True
      Map.Layers.Layer1.Skip=   0   'False
      Map.Layers.Layer1.Path=   "EUROPE.TAB"
      Map.Layers.Layer1.Name=   "Europe"
      Map.Layers.Layer1.Visible=   -1  'True
      Map.Layers.Layer1.Selectable=   -1  'True
      Map.Layers.Layer1.Editable=   0   'False
      Map.Layers.Layer1.ShowNodes=   0   'False
      Map.Layers.Layer1.ShowCentroids=   0   'False
      Map.Layers.Layer1.ShowLineDirection=   0   'False
      Map.Layers.Layer1.AutoLabel=   -1  'True
      Map.Layers.Layer1.DrawLabelsAfter=   0   'False
      Map.Layers.Layer1.ZoomLayering=   0   'False
      Map.Layers.Layer1.ZoomMin=   0
      Map.Layers.Layer1.ZoomMax=   0
      Map.Layers.Layer1.DoOverrideStyle=   0   'False
      Map.Layers.Layer1.LabelProperties.LabelMax=   100
      Map.Layers.Layer1.LabelProperties.Overlap=   0   'False
      Map.Layers.Layer1.LabelProperties.Duplicate=   -1  'True
      Map.Layers.Layer1.LabelProperties.Offset=   2
      Map.Layers.Layer1.LabelProperties.LineType=   0
      Map.Layers.Layer1.LabelProperties.Zoom=   0   'False
      Map.Layers.Layer1.LabelProperties.ZoomMin=   0
      Map.Layers.Layer1.LabelProperties.ZoomMax=   10000
      Map.Layers.Layer1.LabelProperties.Visible=   -1  'True
      Map.Layers.Layer1.LabelProperties.Position=   0
      Map.Layers.Layer1.LabelProperties.Parallel=   -1  'True
      Map.Layers.Layer1.LabelProperties.LabelAlong=   1
      Map.Layers.Layer1.LabelProperties.PartialSegments=   0   'False
      Map.Layers.Layer1.LabelProperties.Style.TextFontBackColor=   16777215
      Map.Layers.Layer1.LabelProperties.Style.SymbolChar=   0
      BeginProperty Map.Layers.Layer1.LabelProperties.Style.TextFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Map.Layers.Layer1.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.Layer1.LabelProperties.Style.LineStyle=   1
      Map.Layers.Layer1.LabelProperties.Style.LineWidth=   1
      Map.NumericCoordSys.ProjectionInfo=   "Main.frx":0000
      Map.DisplayCoordSys.ProjectionInfo=   "Main.frx":0130
      Map.Zoom        =   7931.86561537894
      Map.CenterX     =   18.862465
      Map.CenterY     =   54.531691
      FeatureEditMode =   1
   End
   Begin VB.CommandButton Command4 
      Caption         =   "选择"
      Height          =   375
      Left            =   0
      TabIndex        =   3
      Top             =   0
      Width           =   855
   End
   Begin VB.CommandButton Command3 
      Caption         =   "平移"
      Height          =   375
      Left            =   840
      TabIndex        =   2
      Top             =   0
      Width           =   855
   End
   Begin VB.CommandButton Command2 
      Caption         =   "放大"
      Height          =   375
      Left            =   1680
      TabIndex        =   1
      Top             =   0
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "缩小"
      Height          =   375
      Left            =   2520
      TabIndex        =   0
      Top             =   0
      Width           =   855
   End
End
Attribute VB_Name = "Main"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()
'放大功能
Map1.CurrentTool = miZoomOutTool
End Sub

Private Sub Command2_Click()
'缩小功能
Map1.CurrentTool = miZoomInTool
End Sub

Private Sub Command3_Click()
'平移功能
Map1.CurrentTool = miPanTool
End Sub

Private Sub Command4_Click()
'选择功能
Map1.CurrentTool = miSelectTool
End Sub

Private Sub Command5_Click()
'全图显示功能
Set Map1.Bounds = Map1.Layers.Bounds
End Sub


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -