?? frmfloodareapre.frm
字號:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form frmFloodAreaPre
Caption = "災前洪水淹沒范圍估計"
ClientHeight = 3075
ClientLeft = 60
ClientTop = 345
ClientWidth = 3705
Icon = "frmFloodAreaPre.frx":0000
LinkTopic = "Form1"
ScaleHeight = 3075
ScaleWidth = 3705
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton cmdOK
Caption = "確認"
Height = 375
Left = 2160
TabIndex = 10
Top = 2640
Width = 735
End
Begin VB.CommandButton cmdCancel
Caption = "取消"
Height = 375
Left = 840
TabIndex = 9
Top = 2640
Width = 735
End
Begin VB.Frame Frame1
Caption = "請輸入平水期水體范圍"
Height = 735
Left = 120
TabIndex = 6
Top = 120
Width = 3495
Begin VB.TextBox strPathWater
Height = 375
Left = 120
TabIndex = 8
Top = 240
Width = 2895
End
Begin VB.CommandButton cmdWater
Caption = "..."
Height = 375
Left = 3000
TabIndex = 7
Top = 240
Width = 375
End
End
Begin VB.Frame Frame3
Caption = "將預測淹沒范圍保存為"
Height = 735
Left = 120
TabIndex = 3
Top = 1800
Width = 3495
Begin VB.TextBox strPathResult
Height = 375
Left = 120
TabIndex = 5
Top = 240
Width = 2895
End
Begin VB.CommandButton cmdResult
Caption = "..."
Height = 375
Left = 3000
TabIndex = 4
Top = 240
Width = 375
End
End
Begin VB.Frame Frame4
Caption = "輸入預測洪水水體范圍"
Height = 735
Left = 120
TabIndex = 0
Top = 960
Width = 3495
Begin VB.CommandButton cmdFlood
Caption = "..."
Height = 375
Left = 3000
TabIndex = 2
Top = 240
Width = 375
End
Begin VB.TextBox strPathFlood
Height = 375
Left = 120
TabIndex = 1
Top = 240
Width = 2895
End
End
Begin MSComDlg.CommonDialog CommonDlg
Left = 240
Top = 2040
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
End
Attribute VB_Name = "frmFloodAreaPre"
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 shpResultLyr As IFeatureLayer
Private Sub cmdCancel_Click()
flagOK = False
Me.Hide
End Sub
Private Sub cmdFlood_Click()
Dim sReturn As String
Set shpFloodLyr = BrowseToOpenLayer("poly", sReturn, "打開洪水水體范圍文件")
strPathFlood = sReturn
' strPathFlood = strPathFlood
''' CommonDlg.DialogTitle = "請選擇洪水范圍文件"
''' CommonDlg.filename = "C:\Program Files\BeijiangTemp\flood.shp"
''' CommonDlg.Filter = "Shape file(*.shp)|*.shp"
''' CommonDlg.ShowOpen
''' strPathFlood = CommonDlg.filename
End Sub
Private Sub cmdOK_Click()
flagOK = True
Me.Hide
End Sub
Private Sub cmdResult_Click()
CommonDlg.DialogTitle = "結果文件保存為"
CommonDlg.FileName = "C:\Program Files\BeijiangTemp\floodRange.shp"
CommonDlg.Filter = "Shape file(*.shp)|*.shp"
CommonDlg.ShowSave
strPathResult = CommonDlg.FileName
End Sub
Private Sub cmdWater_Click()
Dim sReturn As String
Set shpWaterLyr = BrowseToOpenLayer("poly", sReturn, "打開本體水體范圍文件")
strPathWater = sReturn
'''' CommonDlg.InitDir = upperPath
''' CommonDlg.DialogTitle = "請選擇本體水體"
''' CommonDlg.filename = "C:\Program Files\BeijiangTemp\resultfeat.shp"
''' CommonDlg.Filter = "Shape file(*.shp)|*.shp"
''' CommonDlg.ShowOpen
''' strPathWater = CommonDlg.filename
End Sub
Private Sub Form_Load()
flagOK = False
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -