frmforcropinfo.frm

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

FRM
113 行
字号
VERSION 5.00
Begin VB.Form frmForCropInfo 
   Caption         =   "选择作物损失统计所需图层"
   ClientHeight    =   2400
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   3765
   Icon            =   "frmForCropInfo.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   2400
   ScaleWidth      =   3765
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton cmdOK 
      Caption         =   "确 认"
      Height          =   375
      Left            =   840
      TabIndex        =   7
      Top             =   1920
      Width           =   735
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取 消"
      Height          =   375
      Left            =   2160
      TabIndex        =   6
      Top             =   1920
      Width           =   735
   End
   Begin VB.Frame Frame1 
      Caption         =   "请输入用于统计的行政区"
      Height          =   735
      Left            =   120
      TabIndex        =   3
      Top             =   120
      Width           =   3495
      Begin VB.CommandButton cmdPolygon 
         Caption         =   "..."
         Height          =   375
         Left            =   2880
         TabIndex        =   5
         Top             =   240
         Width           =   495
      End
      Begin VB.TextBox txtPolygon 
         Height          =   375
         Left            =   120
         TabIndex        =   4
         Top             =   240
         Width           =   2775
      End
   End
   Begin VB.Frame Frame4 
      Caption         =   "请输入要统计的评估损失"
      Height          =   735
      Left            =   120
      TabIndex        =   0
      Top             =   960
      Width           =   3495
      Begin VB.TextBox txtCropLoss 
         Height          =   375
         Left            =   120
         TabIndex        =   2
         Top             =   240
         Width           =   2775
      End
      Begin VB.CommandButton cmdCropLoss 
         Caption         =   "..."
         Height          =   375
         Left            =   2880
         TabIndex        =   1
         Top             =   240
         Width           =   495
      End
   End
End
Attribute VB_Name = "frmForCropInfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public flagOK As Boolean
Public cropLossLyr As IRasterLayer
Public shpPolygonLyr As IFeatureLayer

Private Sub Form_Load()
    g_bForCropDisplay = False
End Sub

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

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

Private Sub cmdPolygon_Click()
    Dim sReturn As String
    Set shpPolygonLyr = BrowseToOpenLayer("poly", sReturn, "请输入用于统计的行政区")
    txtPolygon = sReturn
End Sub

Private Sub cmdCropLoss_Click()
    Dim sReturn As String
    Set cropLossLyr = BrowseToOpenLayer("raster", sReturn, "请输入用于统计的作物损失")
    txtCropLoss = sReturn
End Sub



⌨️ 快捷键说明

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