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

📄 frmclosetable.frm

📁 vb+mapxvb+mo二次开发实现鹰眼功能
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmCloseTable 
   Caption         =   "关闭表"
   ClientHeight    =   2445
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4485
   LinkTopic       =   "Form1"
   ScaleHeight     =   2445
   ScaleWidth      =   4485
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton CommandExit 
      Caption         =   "取 消"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3240
      TabIndex        =   3
      Top             =   1560
      Width           =   975
   End
   Begin VB.CommandButton CommandOK 
      Caption         =   "确 认"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3240
      TabIndex        =   2
      Top             =   720
      Width           =   975
   End
   Begin VB.ListBox List1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1530
      Left            =   240
      TabIndex        =   1
      Top             =   600
      Width           =   2775
   End
   Begin VB.Label Label1 
      Caption         =   "选择表:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   855
   End
End
Attribute VB_Name = "FrmCloseTable"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CommandOK_Click()
 Dim lyr As MapXLib.Layer
    Dim I As Integer
    
    For I = 0 To List1.ListCount - 1
        If (List1.Selected(I) = True) Then
            Set lyr = FormMain.Map1.Layers(List1.List(I))
            lyr.DataSets.RemoveAll
    
            FormMain.Map1.Layers.Remove lyr
        End If
    Next I
    
    Call ChangeCombo
    
    Set lyr = Nothing
    
    Unload Me
End Sub
Private Sub Form_Load()
    Dim lyr As MapXLib.Layer
    
    List1.Clear
    For Each lyr In FormMain.Map1.Layers
        List1.AddItem lyr.Name
    Next
    
    List1.Selected(0) = True
       
    Set lyr = Nothing
End Sub
Private Sub CommandExit_Click()
    Unload Me
End Sub
Private Sub ChangeCombo()
    Dim lyr As MapXLib.Layer
    Dim I As Integer, TmpStr As String
    
    I = 0
    For Each lyr In FormMain.Map1.Layers
        I = I + 1
        TmpStr = FormMain.Map1.Layers.Item(I).Name
        If (FormMain.Map1.Layers(TmpStr).Editable = True) Then
            Set EditLayer = lyr
            Exit For
        End If
    Next
End Sub

⌨️ 快捷键说明

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