frmselwaterbodypre.frm

来自「FloodEvaluation-程序是gis方面的程序」· FRM 代码 · 共 182 行

FRM
182 行
字号
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form frmFloodDepthPre 
   Caption         =   "灾前洪水淹没水深估计"
   ClientHeight    =   4170
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4725
   Icon            =   "frmSelWaterBodyPre.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   4170
   ScaleWidth      =   4725
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Caption         =   "请输入本体水体范围"
      Height          =   735
      Left            =   240
      TabIndex        =   11
      Top             =   240
      Width           =   4215
      Begin VB.TextBox strPathWater 
         Height          =   375
         Left            =   120
         TabIndex        =   13
         Top             =   240
         Width           =   3495
      End
      Begin VB.CommandButton cmdWater 
         Caption         =   "..."
         Height          =   375
         Left            =   3600
         TabIndex        =   12
         Top             =   240
         Width           =   495
      End
   End
   Begin VB.Frame Frame4 
      Caption         =   "请输入预测洪水范围"
      Height          =   735
      Left            =   240
      TabIndex        =   8
      Top             =   1080
      Width           =   4215
      Begin VB.TextBox strPathFlood 
         Height          =   375
         Left            =   120
         TabIndex        =   10
         Top             =   240
         Width           =   3495
      End
      Begin VB.CommandButton cmdFlood 
         Caption         =   "..."
         Height          =   375
         Left            =   3600
         TabIndex        =   9
         Top             =   240
         Width           =   495
      End
   End
   Begin VB.Frame Frame3 
      Caption         =   "估计淹没水深保存为"
      Height          =   735
      Left            =   240
      TabIndex        =   5
      Top             =   2760
      Width           =   4215
      Begin VB.CommandButton cmdResult 
         Caption         =   "..."
         Height          =   375
         Left            =   3600
         TabIndex        =   7
         Top             =   240
         Width           =   495
      End
      Begin VB.TextBox strPathResult 
         Height          =   375
         Left            =   120
         TabIndex        =   6
         Top             =   240
         Width           =   3495
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "请输入评估区域DEM"
      Height          =   735
      Left            =   240
      TabIndex        =   2
      Top             =   1920
      Width           =   4215
      Begin VB.CommandButton cmdDEM 
         Caption         =   "..."
         Height          =   375
         Left            =   3600
         TabIndex        =   4
         Top             =   240
         Width           =   495
      End
      Begin VB.TextBox strPathDem 
         Height          =   375
         Left            =   120
         TabIndex        =   3
         Top             =   240
         Width           =   3495
      End
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取 消"
      Height          =   375
      Left            =   2520
      TabIndex        =   1
      Top             =   3600
      Width           =   735
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确 认"
      Height          =   375
      Left            =   840
      TabIndex        =   0
      Top             =   3600
      Width           =   735
   End
   Begin MSComDlg.CommonDialog CommonDlg 
      Left            =   480
      Top             =   3000
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
End
Attribute VB_Name = "frmFloodDepthPre"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public flagOK As Boolean

Public shpWaterLyr As IFeatureLayer
Public shpFloodLyr As IFeatureLayer
Public rasDEMLyr As IRasterLayer

Private Sub cmdCancel_Click()
    flagOK = False
    Me.Hide
End Sub

Private Sub cmdDEM_Click()
    Dim sReturn As String
    Set rasDEMLyr = BrowseToOpenLayer("raster", sReturn, "打开评估区DEM文件")
    strPathDem = sReturn
End Sub

Private Sub cmdFlood_Click()
    Dim sReturn As String
    Set shpFloodLyr = BrowseToOpenLayer("poly", sReturn, "打开洪水水体范围文件")
    strPathFlood = sReturn
End Sub

Private Sub cmdOK_Click()
    flagOK = True
    Me.Hide
End Sub

Private Sub cmdResult_Click()
    CommonDlg.DialogTitle = "结果文件保存为"
    CommonDlg.FileName = "floodDepthPre" + GetDate + ".aux"
    CommonDlg.Filter = "ESRI GRID(*.aux)|*.aux"
    CommonDlg.ShowSave
    strPathResult = CommonDlg.FileName
End Sub

Private Sub cmdWater_Click()
    Dim sReturn As String
    Set shpWaterLyr = BrowseToOpenLayer("poly", sReturn, "打开本体水体范围文件")
    strPathWater = sReturn
End Sub

Private Sub Form_Load()
    flagOK = False
End Sub

⌨️ 快捷键说明

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