www.pudn.com > MapX5Demo.rar > frmSelectLayer.frm, change:2002-09-19,size:1971b


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