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

📄 frm_lyr.frm

📁 vb+mo而次开发实现鹰眼功能
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "Comdlg32.ocx"
Begin VB.Form frm_lyr 
   Caption         =   "图层控制"
   ClientHeight    =   6330
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   9105
   Icon            =   "frm_lyr.frx":0000
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6330
   ScaleWidth      =   9105
   Begin VB.CheckBox chk_see 
      Caption         =   " "
      Height          =   375
      Index           =   9
      Left            =   2565
      TabIndex        =   33
      Top             =   3240
      Value           =   1  'Checked
      Width           =   255
   End
   Begin VB.CheckBox chk_see 
      Caption         =   " "
      Height          =   375
      Index           =   8
      Left            =   2565
      TabIndex        =   32
      Top             =   3000
      Value           =   1  'Checked
      Width           =   255
   End
   Begin VB.CheckBox chk_see 
      Caption         =   " "
      Height          =   375
      Index           =   7
      Left            =   2565
      TabIndex        =   31
      Top             =   2760
      Value           =   1  'Checked
      Width           =   255
   End
   Begin VB.CheckBox chk_see 
      Caption         =   " "
      Height          =   375
      Index           =   6
      Left            =   2565
      TabIndex        =   30
      Top             =   2520
      Value           =   1  'Checked
      Width           =   255
   End
   Begin VB.CheckBox chk_see 
      Caption         =   " "
      Height          =   375
      Index           =   5
      Left            =   2565
      TabIndex        =   29
      Top             =   2280
      Value           =   1  'Checked
      Width           =   255
   End
   Begin VB.CheckBox chk_see 
      Caption         =   " "
      Height          =   375
      Index           =   4
      Left            =   2565
      TabIndex        =   28
      Top             =   2040
      Value           =   1  'Checked
      Width           =   255
   End
   Begin VB.CheckBox chk_see 
      Caption         =   " "
      Height          =   375
      Index           =   3
      Left            =   2565
      TabIndex        =   27
      Top             =   1800
      Value           =   1  'Checked
      Width           =   255
   End
   Begin VB.CheckBox chk_see 
      Caption         =   " "
      Height          =   375
      Index           =   2
      Left            =   2565
      TabIndex        =   26
      Top             =   1560
      Value           =   1  'Checked
      Width           =   255
   End
   Begin VB.CheckBox chk_see 
      Caption         =   " "
      Height          =   375
      Index           =   1
      Left            =   2565
      TabIndex        =   25
      Top             =   1320
      Value           =   1  'Checked
      Width           =   255
   End
   Begin VB.CheckBox chk_see 
      Caption         =   " "
      Height          =   375
      Index           =   0
      Left            =   2565
      TabIndex        =   24
      Top             =   1080
      Value           =   1  'Checked
      Width           =   255
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   4440
      Top             =   240
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
      DefaultExt      =   "*.shp"
      DialogTitle     =   "打开 Shape 文件"
      Filter          =   "Shape File(*.shp)|*.shp"
   End
   Begin VB.OptionButton Option1 
      Caption         =   " "
      Height          =   255
      Index           =   9
      Left            =   3600
      TabIndex        =   23
      Top             =   4440
      Width           =   255
   End
   Begin VB.OptionButton Option1 
      Caption         =   " "
      Height          =   255
      Index           =   8
      Left            =   3600
      TabIndex        =   22
      Top             =   3960
      Width           =   255
   End
   Begin VB.OptionButton Option1 
      Caption         =   " "
      Height          =   255
      Index           =   7
      Left            =   3600
      TabIndex        =   21
      Top             =   3600
      Width           =   255
   End
   Begin VB.OptionButton Option1 
      Caption         =   " "
      Height          =   255
      Index           =   6
      Left            =   3600
      TabIndex        =   20
      Top             =   3240
      Width           =   255
   End
   Begin VB.OptionButton Option1 
      Caption         =   " "
      Height          =   255
      Index           =   5
      Left            =   3600
      TabIndex        =   19
      Top             =   2880
      Width           =   255
   End
   Begin VB.OptionButton Option1 
      Caption         =   " "
      Height          =   255
      Index           =   4
      Left            =   3600
      TabIndex        =   18
      Top             =   2520
      Width           =   255
   End
   Begin VB.OptionButton Option1 
      Caption         =   " "
      Height          =   255
      Index           =   3
      Left            =   3600
      TabIndex        =   17
      Top             =   2040
      Width           =   255
   End
   Begin VB.OptionButton Option1 
      Caption         =   " "
      Height          =   255
      Index           =   2
      Left            =   3600
      TabIndex        =   16
      Top             =   1680
      Width           =   255
   End
   Begin VB.OptionButton Option1 
      Caption         =   " "
      Height          =   255
      Index           =   1
      Left            =   3600
      TabIndex        =   15
      Top             =   1320
      Width           =   255
   End
   Begin VB.OptionButton Option1 
      Caption         =   " "
      Height          =   255
      Index           =   0
      Left            =   3600
      TabIndex        =   14
      Top             =   960
      Width           =   255
   End
   Begin VB.ListBox lyr_lst 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   3660
      Left            =   1200
      TabIndex        =   9
      Top             =   1080
      Width           =   1215
   End
   Begin VB.CommandButton Cmd_cancle 
      Caption         =   "取消"
      Height          =   495
      Left            =   4440
      TabIndex        =   7
      Top             =   2160
      Width           =   1095
   End
   Begin VB.CommandButton Cmd_ok 
      Caption         =   "确定"
      Height          =   495
      Left            =   4440
      TabIndex        =   6
      Top             =   960
      Width           =   1095
   End
   Begin VB.Frame Frame2 
      Caption         =   "图层顺序"
      Height          =   735
      Left            =   2880
      TabIndex        =   1
      Top             =   5040
      Width           =   2415
      Begin VB.CommandButton Lyr_down 
         Caption         =   "下(&D)"
         Height          =   375
         Left            =   1320
         TabIndex        =   5
         Top             =   240
         Width           =   975
      End
      Begin VB.CommandButton Lyr_up 
         Caption         =   "上(&U)"
         Height          =   375
         Left            =   120
         TabIndex        =   4
         Top             =   240
         Width           =   975
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "图层"
      Height          =   735
      Left            =   240
      TabIndex        =   0
      Top             =   5040
      Width           =   2415
      Begin VB.CommandButton Lyr_remove 
         Caption         =   "删除(&R)"
         Height          =   375
         Left            =   1320
         TabIndex        =   3
         Top             =   240
         Width           =   975
      End
      Begin VB.CommandButton lyr_add 
         Caption         =   "增加(&A)"
         Height          =   375
         Left            =   120
         TabIndex        =   2
         Top             =   240
         Width           =   975
      End
   End
   Begin VB.Label Label5 
      Caption         =   "类型标志:"
      Height          =   255
      Left            =   120
      TabIndex        =   13
      Top             =   480
      Width           =   975
   End
   Begin VB.Label Label4 
      Caption         =   "可编辑:"
      Height          =   255
      Left            =   3480
      TabIndex        =   12
      Top             =   480
      Width           =   735
   End
   Begin VB.Label Label3 
      Caption         =   "可视:"
      Height          =   255
      Left            =   2640
      TabIndex        =   11
      Top             =   480
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "图层:"
      Height          =   255
      Left            =   1320
      TabIndex        =   10
      Top             =   480
      Width           =   1095
   End
   Begin VB.Label Label1 
      Caption         =   $"frm_lyr.frx":0442
      Height          =   3975
      Left            =   6240
      TabIndex        =   8
      Top             =   1200
      Width           =   2535
   End
End
Attribute VB_Name = "frm_lyr"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Sub Lyr_lst_fresh()
Dim i, lyr_cnt2 As Integer
Dim lyr As MapLayer
lyr_lst.Clear
i = frm_main.Map1.Layers.Count

For lyr_cnt2 = 1 To i
  Set lyr = New MapLayer
  Set lyr = frm_main.Map1.Layers(lyr_cnt2 - 1)
  lyr_lst.AddItem (lyr.Name)
  
Next

⌨️ 快捷键说明

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