⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmscale.frm

📁 GIS+VB开发. GIS+VB开发.
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmScale 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "比例尺设置"
   ClientHeight    =   750
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   2190
   Icon            =   "FrmScale.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   750
   ScaleWidth      =   2190
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton CmdApply 
      Caption         =   "应用"
      Height          =   375
      Left            =   1440
      TabIndex        =   4
      Top             =   360
      Width           =   735
   End
   Begin VB.CommandButton CmdCancel 
      Caption         =   "取消"
      Height          =   375
      Left            =   720
      TabIndex        =   3
      Top             =   360
      Width           =   735
   End
   Begin VB.CommandButton CmdOk 
      Caption         =   "确定"
      Height          =   375
      Left            =   0
      TabIndex        =   2
      Top             =   360
      Width           =   735
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   1215
   End
   Begin VB.Label Label1 
      Height          =   255
      Left            =   1300
      TabIndex        =   1
      Top             =   30
      Width           =   1215
   End
End
Attribute VB_Name = "FrmScale"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdApply_Click()
Dim DoubleA As Double
DoubleA = Val(Text1.Text)
If DoubleA <= 0 Then
  MsgBox "请输入个大于零的数"
  Text1.SetFocus
  Exit Sub
End If
FrmMain.MyMap.Zoom = DoubleA
CmdApply.Enabled = False
End Sub

Private Sub CmdCancel_Click()
Unload Me
End Sub

Private Sub CmdOk_Click()
Dim DoubleA As Double
DoubleA = Val(Text1.Text)
If DoubleA <= 0 Then
  MsgBox "请输入个大于零的数"
  Text1.SetFocus
  Exit Sub
End If
FrmMain.MyMap.Zoom = DoubleA
CmdApply.Enabled = False
Unload Me
End Sub

Private Sub Form_Load()
Text1.Text = Format(FrmMain.MyMap.Zoom, "#.0000")
Label1.Caption = FrmMain.GetMapUnit
CmdApply.Enabled = False
End Sub

Private Sub Text1_Change()
CmdApply.Enabled = True
End Sub

⌨️ 快捷键说明

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