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

📄 frmnewlayer.frm

📁 mapx使用手册 mapx使用手册 mapx使用手册
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmNewLayer 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "创建新图层"
   ClientHeight    =   3195
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  'CenterOwner
   Begin VB.CommandButton cmdOpenDir 
      Height          =   375
      Left            =   3960
      Picture         =   "frmNewLayer.frx":0000
      Style           =   1  'Graphical
      TabIndex        =   7
      Top             =   1680
      Width           =   375
   End
   Begin VB.TextBox txtLayerName 
      Height          =   375
      Left            =   1320
      TabIndex        =   6
      Top             =   240
      Width           =   2655
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "退出"
      Height          =   400
      Left            =   2760
      TabIndex        =   5
      Top             =   2520
      Width           =   1200
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确定"
      Height          =   400
      Left            =   720
      TabIndex        =   4
      Top             =   2520
      Width           =   1200
   End
   Begin VB.TextBox txtFilePath 
      Height          =   375
      Left            =   1320
      TabIndex        =   3
      Top             =   1680
      Width           =   2655
   End
   Begin VB.CheckBox Check 
      Caption         =   "创建临时表"
      Height          =   375
      Left            =   120
      TabIndex        =   1
      Top             =   1080
      Value           =   1  'Checked
      Width           =   1935
   End
   Begin VB.Label Label2 
      Caption         =   "存放路径:"
      Height          =   255
      Left            =   120
      TabIndex        =   2
      Top             =   1800
      Width           =   1095
   End
   Begin VB.Label Label1 
      Caption         =   "表名:"
      Height          =   255
      Left            =   120
      TabIndex        =   0
      Top             =   360
      Width           =   975
   End
End
Attribute VB_Name = "frmNewLayer"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'********************************************************************************
'File Name   :frmNewLayer.frm
'Description :Create new tab layer or temporary layer
'Author      :James Liu
'Copyright   :MapInfo China
'Create Date :2002年9月11日
'********************************************************************************

Private Sub Check_Click()
    If Check.value = 0 Then
        txtFilePath.Enabled = True
        cmdOpenDir.Enabled = True
        Label2.Enabled = True
    Else
        txtFilePath.Enabled = False
        cmdOpenDir.Enabled = False
        Label2.Enabled = False
    End If
End Sub

Private Sub cmdCancel_Click()
    frmMain.m_sFilePath = ""
    frmMain.m_sLayerName = ""
    frmMain.m_iAddTempLayer = Check.value
    Unload Me

End Sub

Private Sub cmdOK_Click()
    frmMain.m_sFilePath = Trim(txtFilePath.Text)
    frmMain.m_sLayerName = Trim(txtLayerName.Text)
    frmMain.m_iAddTempLayer = Check.value
    Unload Me
End Sub

Private Sub cmdOpenDir_Click()
Dim oBrowerDir As New clsDirBrowser
    txtFilePath.Text = oBrowerDir.BrowseForFolder(Me.hWnd, "选择文件存放目录")
    Set oBrowerDir = Nothing
End Sub

Private Sub Form_Load()
    Check.value = 1
    txtFilePath.Enabled = False
    cmdOpenDir.Enabled = False
    Label2.Enabled = False
    txtLayerName.TabIndex = 0
End Sub

⌨️ 快捷键说明

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