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

📄 frmviewlayer.frm

📁 GIS+VB开发. GIS+VB开发.
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmViewLayer 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "查看图层"
   ClientHeight    =   645
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   1845
   Icon            =   "FrmViewLayer.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   645
   ScaleWidth      =   1845
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   255
      Left            =   960
      TabIndex        =   2
      Top             =   360
      Width           =   735
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   255
      Left            =   120
      TabIndex        =   1
      Top             =   360
      Width           =   735
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      Left            =   0
      Style           =   2  'Dropdown List
      TabIndex        =   0
      Top             =   0
      Width           =   1815
   End
End
Attribute VB_Name = "FrmViewLayer"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
    Set FrmMain.MyMap.NumericCoordSys = FrmMain.MyMap.DisplayCoordSys
    If Combo1.Text = "所有图层" Then
        Set FrmMain.MyMap.Bounds = FrmMain.MyMap.Layers.Bounds
    Else
        Set FrmMain.MyMap.Bounds = FrmMain.MyMap.Layers(Combo1.Text).Bounds
    End If
    Unload Me
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
Dim TempLayer As MapXLib.Layer
Combo1.Clear
Combo1.AddItem "所有图层"
For Each TempLayer In FrmMain.MyMap.Layers
  Combo1.AddItem TempLayer.Name
Next
Combo1.ListIndex = 0
End Sub

⌨️ 快捷键说明

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