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

📄 frmlabeloptions.frm

📁 这是一个 信息查询的小程序
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form frmLabelOptions 
   Caption         =   "标注属性"
   ClientHeight    =   5430
   ClientLeft      =   2025
   ClientTop       =   2160
   ClientWidth     =   6720
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   5430
   ScaleWidth      =   6720
   Begin VB.CheckBox chkParallel 
      Caption         =   "沿线标注(&R)"
      Height          =   285
      Left            =   315
      TabIndex        =   25
      Top             =   4500
      Width           =   1365
   End
   Begin VB.TextBox txtLabelZoomMin 
      Height          =   285
      Left            =   1260
      TabIndex        =   12
      Top             =   1890
      Width           =   1230
   End
   Begin VB.CheckBox chkLabelZoom 
      Caption         =   "在缩放范围内显示(Z)"
      Height          =   375
      Left            =   315
      TabIndex        =   11
      Top             =   1305
      Width           =   2130
   End
   Begin VB.TextBox txtLabelMax 
      Height          =   255
      Left            =   4380
      TabIndex        =   10
      Top             =   2295
      Width           =   1275
   End
   Begin VB.CheckBox chkPartialSegments 
      Caption         =   "标注部分线段(&P)"
      Height          =   495
      Left            =   3840
      TabIndex        =   9
      Top             =   1740
      Width           =   1695
   End
   Begin VB.CheckBox chkDuplicate 
      Caption         =   "允许文本重复(&U)"
      Height          =   495
      Left            =   3840
      TabIndex        =   8
      Top             =   1320
      Width           =   1935
   End
   Begin VB.CheckBox chkOverlap 
      Caption         =   "允许文本重叠(&V)"
      Height          =   495
      Left            =   3840
      TabIndex        =   7
      Top             =   900
      Width           =   2355
   End
   Begin VB.CheckBox chkVisible 
      Caption         =   "标注可见(&E)"
      Height          =   495
      Left            =   270
      TabIndex        =   6
      Top             =   900
      Width           =   1335
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取消(&C)"
      Height          =   495
      Left            =   5040
      TabIndex        =   5
      Top             =   4740
      Width           =   1215
   End
   Begin VB.CommandButton cmdOk 
      Caption         =   "确定(&O)"
      Height          =   495
      Left            =   3420
      TabIndex        =   4
      Top             =   4740
      Width           =   1215
   End
   Begin VB.Frame fraStyle 
      Caption         =   "样式"
      Height          =   1575
      Left            =   3180
      TabIndex        =   3
      Top             =   3000
      Width           =   3390
      Begin VB.CommandButton cmdLineStyle 
         Appearance      =   0  'Flat
         Caption         =   "标注线(&L)"
         Height          =   330
         Left            =   1215
         TabIndex        =   24
         Top             =   1170
         Width           =   960
      End
      Begin VB.CommandButton cmdLabelStyle 
         Appearance      =   0  'Flat
         Caption         =   "标注(&I)"
         Height          =   330
         Left            =   90
         TabIndex        =   23
         Top             =   1170
         Width           =   960
      End
      Begin VB.OptionButton optLineType 
         Caption         =   "箭头线(&A)"
         Height          =   285
         Index           =   2
         Left            =   2205
         TabIndex        =   22
         Top             =   990
         Width           =   1140
      End
      Begin VB.OptionButton optLineType 
         Caption         =   "单线(S)"
         Height          =   195
         Index           =   1
         Left            =   2205
         TabIndex        =   21
         Top             =   630
         Width           =   960
      End
      Begin VB.OptionButton optLineType 
         Caption         =   "无(O)"
         Height          =   180
         Index           =   0
         Left            =   2205
         TabIndex        =   20
         Top             =   270
         Width           =   915
      End
      Begin VB.PictureBox picLineStyle 
         Height          =   825
         Left            =   1215
         ScaleHeight     =   765
         ScaleWidth      =   855
         TabIndex        =   19
         Top             =   225
         Width           =   915
      End
      Begin VB.PictureBox picLabelStyle 
         Height          =   825
         Left            =   135
         ScaleHeight     =   765
         ScaleWidth      =   855
         TabIndex        =   18
         Top             =   225
         Width           =   915
      End
   End
   Begin VB.Frame fraLabelPosition 
      Caption         =   "位置"
      Height          =   2235
      Left            =   90
      TabIndex        =   2
      Top             =   3015
      Width           =   3000
      Begin VB.PictureBox picLabelPos 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         ForeColor       =   &H80000008&
         Height          =   285
         Index           =   2
         Left            =   1800
         ScaleHeight     =   255
         ScaleWidth      =   255
         TabIndex        =   37
         Top             =   270
         Width           =   285
      End
      Begin VB.PictureBox picLabelPos 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         ForeColor       =   &H80000008&
         Height          =   285
         Index           =   1
         Left            =   1125
         ScaleHeight     =   255
         ScaleWidth      =   255
         TabIndex        =   36
         Top             =   270
         Width           =   285
      End
      Begin VB.PictureBox picLabelPos 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         ForeColor       =   &H80000008&
         Height          =   285
         Index           =   0
         Left            =   450
         ScaleHeight     =   255
         ScaleWidth      =   255
         TabIndex        =   35
         Top             =   270
         Width           =   285
      End
      Begin VB.PictureBox picLabelPos 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         ForeColor       =   &H80000008&
         Height          =   285
         Index           =   8
         Left            =   1800
         ScaleHeight     =   255
         ScaleWidth      =   255
         TabIndex        =   34
         Top             =   1170
         Width           =   285
      End
      Begin VB.PictureBox picLabelPos 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         ForeColor       =   &H80000008&
         Height          =   285
         Index           =   7
         Left            =   1125
         ScaleHeight     =   255
         ScaleWidth      =   255
         TabIndex        =   33
         Top             =   1170
         Width           =   285
      End
      Begin VB.PictureBox picLabelPos 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         ForeColor       =   &H80000008&
         Height          =   285
         Index           =   6
         Left            =   450
         ScaleHeight     =   255
         ScaleWidth      =   255
         TabIndex        =   32
         Top             =   1170
         Width           =   285
      End
      Begin VB.PictureBox picLabelPos 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         ForeColor       =   &H80000008&
         Height          =   285
         Index           =   5
         Left            =   1800
         ScaleHeight     =   255
         ScaleWidth      =   255
         TabIndex        =   31
         Top             =   720
         Width           =   285
      End
      Begin VB.PictureBox picLabelPos 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         ForeColor       =   &H80000008&
         Height          =   285
         Index           =   4
         Left            =   1125
         ScaleHeight     =   255
         ScaleWidth      =   255
         TabIndex        =   30
         Top             =   720
         Width           =   285
      End
      Begin VB.PictureBox picLabelPos 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         ForeColor       =   &H80000008&
         Height          =   285
         Index           =   3
         Left            =   450
         ScaleHeight     =   255
         ScaleWidth      =   255
         TabIndex        =   29
         Top             =   720
         Width           =   285
      End
      Begin VB.TextBox txtLabelOffset 
         Height          =   285
         Left            =   1215
         TabIndex        =   26
         Top             =   1800
         Width           =   1140
      End
      Begin VB.Label lblOffsetUnit 
         Caption         =   "象素点"
         Height          =   285
         Left            =   2385
         TabIndex        =   28
         Top             =   1845
         Width           =   555
      End
      Begin VB.Label lblLabelOffset 
         Caption         =   "标注偏移量(&B)"
         Height          =   240
         Left            =   45
         TabIndex        =   27
         Top             =   1845
         Width           =   1185
      End
   End
   Begin VB.ComboBox cboFields 
      Height          =   300
      Left            =   1260
      Style           =   2  'Dropdown List
      TabIndex        =   0
      Top             =   180
      Width           =   2115
   End
   Begin VB.Frame fraVisibility 
      Caption         =   "可视性"
      Height          =   2175
      Left            =   90
      TabIndex        =   13
      Top             =   720
      Width           =   6360
      Begin VB.TextBox txtLabelZoomMax 
         Height          =   285
         Left            =   1170
         TabIndex        =   14
         Top             =   1710
         Width           =   1230
      End
      Begin VB.Label lblUnitZoomMax 
         Caption         =   "公里"
         Height          =   375
         Left            =   2400
         TabIndex        =   39
         Top             =   1680
         Width           =   495
      End
      Begin VB.Label lblUnitZoomMin 
         Caption         =   "公里"
         Height          =   255
         Left            =   2400
         TabIndex        =   38
         Top             =   1200
         Width           =   495
      End
      Begin VB.Label lblZoomMax 
         Alignment       =   1  'Right Justify
         Caption         =   "最大视野(X)"
         Height          =   240
         Left            =   45
         TabIndex        =   17
         Top             =   1710
         Width           =   1050
      End
      Begin VB.Label lblZoomMin 
         Alignment       =   1  'Right Justify
         Caption         =   "最小视野(M)"
         Height          =   240
         Left            =   90
         TabIndex        =   16
         Top             =   1215
         Width           =   1005
      End
      Begin VB.Label lblLabelMax 
         Alignment       =   1  'Right Justify
         Caption         =   "最大标注数(&I)"
         Height          =   195
         Left            =   2880
         TabIndex        =   15
         Top             =   1620
         Width           =   1215
      End
   End
   Begin VB.Label lblDataFeild 
      Alignment       =   1  'Right Justify
      Caption         =   "标注字段:"
      Height          =   225
      Left            =   -45
      TabIndex        =   1
      Top             =   270
      Width           =   1155
   End
End
Attribute VB_Name = "frmLabelOptions"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private m_strCurLayerName As String               '当前层名

Private m_lyrCur As MapXLib.Layer                 '当前层
Private m_posNew As MapXLib.PositionConstants     '修改后的标注位置
Private m_ltNew As MapXLib.LineTypeConstants      '修改后的标注线性
Private m_styNew As MapXLib.Style                 '修改后的标注样式

Private Sub chkLabelZoom_Click()
If chkLabelZoom.Value = vbChecked Then
    txtLabelZoomMin.Enabled = True
    txtLabelZoomMax.Enabled = True
    txtLabelZoomMin.BackColor = vbWindowBackground
    txtLabelZoomMax.BackColor = vbWindowBackground
    txtLabelZoomMin.Text = CStr(m_lyrCur.LabelProperties.LabelZoomMin)
    txtLabelZoomMax.Text = CStr(m_lyrCur.LabelProperties.LabelZoomMax)

⌨️ 快捷键说明

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