📄 frmdistrictsum.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form frmEvaluateSum
Caption = "洪灾损失统计"
ClientHeight = 3060
ClientLeft = 60
ClientTop = 345
ClientWidth = 3735
Icon = "frmDistrictSum.frx":0000
LinkTopic = "Form1"
ScaleHeight = 3060
ScaleWidth = 3735
StartUpPosition = 3 'Windows Default
Begin VB.Frame Frame3
Caption = "将评估损失的统计存为"
Height = 735
Left = 120
TabIndex = 8
Top = 1800
Width = 3495
Begin VB.CommandButton cmdResult
Caption = "..."
Height = 375
Left = 3000
TabIndex = 10
Top = 240
Width = 375
End
Begin VB.TextBox txtPathResult
Height = 375
Left = 120
TabIndex = 9
Top = 240
Width = 2895
End
End
Begin VB.Frame Frame4
Caption = "请输入统计的评估损失"
Height = 735
Left = 120
TabIndex = 5
Top = 960
Width = 3495
Begin VB.CommandButton cmdLosslayer
Caption = "..."
Height = 375
Left = 3000
TabIndex = 7
Top = 240
Width = 375
End
Begin VB.TextBox txtEvaluateRaster
Height = 375
Left = 120
TabIndex = 6
Top = 240
Width = 2895
End
End
Begin VB.Frame Frame1
Caption = "请输入统计的区域范围"
Height = 735
Left = 120
TabIndex = 2
Top = 120
Width = 3495
Begin VB.TextBox txtPolygon
Height = 375
Left = 120
TabIndex = 4
Top = 240
Width = 2895
End
Begin VB.CommandButton cmdPolygon
Caption = "..."
Height = 375
Left = 3000
TabIndex = 3
Top = 240
Width = 375
End
End
Begin VB.CommandButton cmdCancel
Caption = "取消"
Height = 375
Left = 840
TabIndex = 1
Top = 2640
Width = 735
End
Begin VB.CommandButton cmdOK
Caption = "确认"
Height = 375
Left = 2040
TabIndex = 0
Top = 2640
Width = 735
End
Begin MSComDlg.CommonDialog CommonDlg
Left = 120
Top = 1440
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
End
Attribute VB_Name = "frmEvaluateSum"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public flagOK As Boolean
Public lossLyr As ILayer
Public shpPolygonLyr As IFeatureLayer
Private Sub cmdCancel_Click()
flagOK = False
Me.Hide
End Sub
Private Sub cmdOK_Click()
flagOK = True
Me.Hide
End Sub
Private Sub cmdPolygon_Click()
Dim sReturn As String
Set shpPolygonLyr = BrowseToOpenLayer("poly", sReturn, "请输入统计的区域范围")
txtPolygon = sReturn
End Sub
Private Sub cmdLosslayer_Click()
Dim sReturn As String
Set lossLyr = BrowseToOpenLayer2(sReturn) 'BrowseToOpenLayer("raster", sReturn, "请输入统计的评估损失")
txtEvaluateRaster = sReturn
End Sub
Private Sub cmdResult_Click()
CommonDlg.DialogTitle = "将评估损失的统计存为"
CommonDlg.FileName = "C:\Program Files\BeijiangTemp\floodSum.shp"
CommonDlg.Filter = "Shape file(*.shp)|*.shp"
CommonDlg.ShowSave
txtPathResult = CommonDlg.FileName
End Sub
Private Sub Form_Load()
flagOK = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -