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

📄 form1.frm

📁 vb和mapx开发的
💻 FRM
字号:
VERSION 5.00
Object = "{E760686B-BC9E-4802-9ECF-175FDF4062CE}#5.0#0"; "MAPX50.DLL"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3090
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   11010
   ScaleWidth      =   15240
   StartUpPosition =   3  '窗口缺省
   Begin VB.Timer Timer1 
      Interval        =   400
      Left            =   9120
      Top             =   3840
   End
   Begin MapXLib.Map Map1 
      Height          =   5295
      Left            =   720
      TabIndex        =   5
      Top             =   3600
      Width           =   7215
      _Version        =   500012
      _ExtentX        =   12726
      _ExtentY        =   9340
      _StockProps     =   1
      MapCatalog.GeoDictionary=   "GeoDictionary"
      GeoSet          =   "zzz"
      GeoSetUserName  =   "zzz"
      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   =   -1  'True
      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         =   2402
      Title.Y         =   351
      Map.Layers.Count=   3
      Map.Layers.Layer0.HasFileSpec=   -1  'True
      Map.Layers.Layer0.Skip=   0   'False
      Map.Layers.Layer0.Path=   "旅游\旅游景点.TAB"
      Map.Layers.Layer0.Name=   "旅游景点"
      Map.Layers.Layer0.Visible=   -1  'True
      Map.Layers.Layer0.Selectable=   -1  'True
      Map.Layers.Layer0.Editable=   -1  'True
      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=   0
      Map.Layers.Layer0.ZoomMax=   0
      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=   0
      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=   0
      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=   "旅游\地区.TAB"
      Map.Layers.Layer1.Name=   "地区"
      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=   0   'False
      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            =   "System"
         Size            =   12
         Charset         =   134
         Weight          =   700
         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.Layers.Layer2.HasFileSpec=   -1  'True
      Map.Layers.Layer2.Skip=   0   'False
      Map.Layers.Layer2.Path=   "旅游\城市.TAB"
      Map.Layers.Layer2.Name=   "城市"
      Map.Layers.Layer2.Visible=   -1  'True
      Map.Layers.Layer2.Selectable=   -1  'True
      Map.Layers.Layer2.Editable=   0   'False
      Map.Layers.Layer2.ShowNodes=   0   'False
      Map.Layers.Layer2.ShowCentroids=   0   'False
      Map.Layers.Layer2.ShowLineDirection=   0   'False
      Map.Layers.Layer2.AutoLabel=   0   'False
      Map.Layers.Layer2.DrawLabelsAfter=   0   'False
      Map.Layers.Layer2.ZoomLayering=   0   'False
      Map.Layers.Layer2.ZoomMin=   0
      Map.Layers.Layer2.ZoomMax=   0
      Map.Layers.Layer2.DoOverrideStyle=   0   'False
      Map.Layers.Layer2.LabelProperties.LabelMax=   100
      Map.Layers.Layer2.LabelProperties.Overlap=   0   'False
      Map.Layers.Layer2.LabelProperties.Duplicate=   -1  'True
      Map.Layers.Layer2.LabelProperties.Offset=   2
      Map.Layers.Layer2.LabelProperties.LineType=   0
      Map.Layers.Layer2.LabelProperties.Zoom=   0   'False
      Map.Layers.Layer2.LabelProperties.ZoomMin=   0
      Map.Layers.Layer2.LabelProperties.ZoomMax=   10000
      Map.Layers.Layer2.LabelProperties.Visible=   -1  'True
      Map.Layers.Layer2.LabelProperties.Position=   0
      Map.Layers.Layer2.LabelProperties.Parallel=   -1  'True
      Map.Layers.Layer2.LabelProperties.LabelAlong=   1
      Map.Layers.Layer2.LabelProperties.PartialSegments=   0   'False
      Map.Layers.Layer2.LabelProperties.Style.TextFontBackColor=   16777215
      Map.Layers.Layer2.LabelProperties.Style.SymbolChar=   0
      BeginProperty Map.Layers.Layer2.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.Layer2.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.Layer2.LabelProperties.Style.LineStyle=   1
      Map.Layers.Layer2.LabelProperties.Style.LineWidth=   1
      Map.NumericCoordSys.ProjectionInfo=   "Form1.frx":0000
      Map.DisplayCoordSys.ProjectionInfo=   "Form1.frx":0130
      Map.Zoom        =   1257.1
      Map.CenterX     =   128.0893375
      Map.CenterY     =   48.4894485
      FeatureEditMode =   1
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   495
      Left            =   8160
      TabIndex        =   3
      Top             =   2160
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "查看位置"
      Height          =   495
      Left            =   6960
      TabIndex        =   2
      Top             =   2160
      Width           =   855
   End
   Begin VB.ListBox List1 
      Height          =   2400
      ItemData        =   "Form1.frx":0260
      Left            =   720
      List            =   "Form1.frx":0262
      TabIndex        =   1
      Top             =   840
      Width           =   1695
   End
   Begin VB.TextBox Text1 
      Height          =   1455
      Left            =   6600
      TabIndex        =   0
      Top             =   600
      Width           =   2775
   End
   Begin VB.Label Label1 
      Caption         =   "在左边列表框中选择或在下边的文本框中输入景点的名称进行查询。"
      Height          =   1215
      Left            =   3840
      TabIndex        =   4
      Top             =   840
      Width           =   2295
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public flash_num As Integer
Public flash_init As Integer
Public fs_color As OLE_COLOR
Public fs_size As Integer
Public flash_fs As FindFeature




Private Sub Command1_Click()
Set flash_fs = Form1.Map1.Layers.Item("旅游景点").Find.Search(Text1.Text)
fs_color = flash_fs.Style.SymbolFontColor
fs_size = flash_fs.Style.SymbolFont.Size
Form1.Map1.CenterX = flash_fs.CenterX
Form1.Map1.CenterY = flash_fs.CenterY
Form1.Map1.Zoom = 100
flash_init = 0
Unload Me
End Sub

Private Sub Form_Load()
Dim pot_fss As Features
Set pot_fss = Form1.Map1.Layers.Item("旅游景点").AllFeatures
pot_num = Form1.Map1.Layers.Item("旅游景点").AllFeatures.Count
For i = 1 To pot_num
List1.AddItem pot_fss.Item(i).Name
Next
flash_num = 7
End Sub

Private Sub Text1_Change()
For i = 0 To List1.ListCount - 1
If StrComp(Left$(List1.List(i), Len(Text1.Text)), Text1.Text) = 0 Then
List1.ListIndex = i
Exit For
End If
Next
End Sub

Private Sub Timer1_Timer()
If flash_fs Is Nothing Then
Else
flash_init = flash_init + 1
If flash_init <= 2 * flsha_num Then
If flash_fs.Style.SymbolBitmapColor = fs_color Then
With flash_fs
.Style.SymbolFontColor = miColorRed
.Style.SymbolFont.Size = 25
End With
flash_fs.Update
Else
flash_fs.Style.SymbolFontColor = fs_color
flash_fs.Style.SymbolFont.Size = fs_size
flash_fs.Update
End If
End If
End If
End Sub

⌨️ 快捷键说明

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