📄 frmcropevaluationpre.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form frmEvaluateCropPre
Caption = "灾前作物损失估计"
ClientHeight = 3615
ClientLeft = 60
ClientTop = 345
ClientWidth = 4440
Icon = "frmCropEvaluationPre.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 3615
ScaleWidth = 4440
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton cmdCancel
Caption = "取 消"
Height = 375
Left = 2400
TabIndex = 11
Top = 3120
Width = 735
End
Begin VB.CommandButton cmdOK
Caption = "确 定"
Height = 375
Left = 1080
TabIndex = 10
Top = 3120
Width = 735
End
Begin VB.Frame Frame5
Caption = "输入评估数据"
Height = 1935
Left = 240
TabIndex = 3
Top = 240
Width = 3855
Begin VB.Frame Frame2
Caption = "请输入洪水淹没深度预测"
Height = 735
Left = 120
TabIndex = 7
Top = 240
Width = 3495
Begin VB.TextBox strPathDepth
Height = 405
Left = 120
TabIndex = 9
Top = 240
Width = 2775
End
Begin VB.CommandButton cmdDepth
Caption = "..."
Height = 375
Left = 2880
TabIndex = 8
Top = 240
Width = 495
End
End
Begin VB.Frame Frame3
Caption = "请输入评估区域土地利用"
Height = 735
Left = 120
TabIndex = 4
Top = 1080
Width = 3495
Begin VB.CommandButton cmdLU
Caption = "..."
Height = 375
Left = 2880
TabIndex = 6
Top = 240
Width = 495
End
Begin VB.TextBox strPathLU
Height = 405
Left = 120
TabIndex = 5
Top = 240
Width = 2775
End
End
End
Begin VB.Frame Frame7
Caption = " 结果存为(请用英文名字)"
Height = 735
Left = 240
TabIndex = 0
Top = 2280
Width = 3855
Begin VB.TextBox strPathResult
Height = 405
Left = 240
TabIndex = 2
Top = 240
Width = 2775
End
Begin VB.CommandButton cmdResult
Caption = "..."
Height = 375
Left = 3000
TabIndex = 1
Top = 240
Width = 495
End
End
Begin MSComDlg.CommonDialog CommonDlg
Left = 120
Top = 1920
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
End
Attribute VB_Name = "frmEvaluateCropPre"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public flagOK As Boolean
Public rasLanduseLyr As IRasterLayer
Public rasFloodDepthLyr As IRasterLayer
Private Sub cmdOK_Click()
flagOK = True
Me.Hide
End Sub
Private Sub cmdResult_Click()
CommonDlg.DialogTitle = "将作物评估结果保存为"
CommonDlg.FileName = "cropLossPre" + GetDate + ".aux"
CommonDlg.Filter = "ESRI GRID(*.aux)|*.aux"
CommonDlg.ShowSave
strPathResult = CommonDlg.FileName
End Sub
Private Sub Form_Load()
flagOK = False
End Sub
Private Sub cmdCancel_Click()
flagOK = False
Me.Hide
End Sub
Private Sub cmdLU_Click()
Dim sReturn As String
Set rasLanduseLyr = BrowseToOpenLayer("raster", sReturn, "打开评估区土地利用文件")
strPathLU = sReturn
End Sub
Private Sub cmdDepth_Click()
Dim sReturn As String
Set rasFloodDepthLyr = BrowseToOpenLayer("raster", sReturn, "打开洪水淹没水深文件")
strPathDepth = sReturn
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -