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

📄 frmselectlayer.frm

📁 该源码实现了mapx5的一些新功能
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmSelectLayer 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "选择图层"
   ClientHeight    =   2655
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2655
   ScaleWidth      =   4680
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  'CenterOwner
   Begin VB.CommandButton cmdCancel 
      Caption         =   "退出"
      Height          =   400
      Left            =   2640
      TabIndex        =   3
      Top             =   1680
      Width           =   1200
   End
   Begin VB.CommandButton cmdOk 
      Caption         =   "确定"
      Height          =   400
      Left            =   720
      TabIndex        =   2
      Top             =   1680
      Width           =   1200
   End
   Begin VB.ComboBox cbLayers 
      Height          =   315
      Left            =   1080
      TabIndex        =   1
      Top             =   600
      Width           =   3375
   End
   Begin VB.Label Label1 
      Caption         =   "图层:"
      Height          =   255
      Left            =   120
      TabIndex        =   0
      Top             =   600
      Width           =   615
   End
End
Attribute VB_Name = "frmSelectLayer"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
    frmMain.m_sLayerName = ""
    Unload Me
End Sub

Private Sub cmdOK_Click()
    frmMain.m_sLayerName = cbLayers.Text
    Unload Me
End Sub


Private Sub Form_Load()
Dim i As Integer
    cbLayers.Clear
    For i = 1 To frmMain.Map.Layers.Count
        cbLayers.AddItem frmMain.Map.Layers(i).Name
    Next i
    
    cbLayers.AddItem "所有图层"
    cbLayers.ListIndex = 0
    
End Sub

⌨️ 快捷键说明

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