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

📄 linedemo.frm

📁 mapobjects for VBA的线型符号库与编辑器
💻 FRM
字号:
VERSION 5.00
Object = "{9BD6A640-CE75-11D1-AF04-204C4F4F5020}#2.0#0"; "Mo20.ocx"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   9105
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   10035
   LinkTopic       =   "Form1"
   ScaleHeight     =   9105
   ScaleWidth      =   10035
   StartUpPosition =   3  'Windows Default
   Begin MapObjects2.Map Map1 
      Height          =   7335
      Left            =   600
      TabIndex        =   1
      Top             =   600
      Width           =   8775
      _Version        =   131072
      _ExtentX        =   15478
      _ExtentY        =   12938
      _StockProps     =   225
      BackColor       =   16777215
      BorderStyle     =   1
      Contents        =   "linedemo.frx":0000
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Start"
      Height          =   615
      Left            =   3720
      TabIndex        =   0
      Top             =   8400
      Width           =   1455
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()
Dim layer As MapObjects2.MapLayer
Dim ps As New MOSYMBOLLib.MoPenset

ps.Load ("sample.lin")
Set layer = Map1.Layers(Map1.Layers.Count - 1)
For i = 0 To ps.Count - 1
    layer.Symbol.Custom = ps.Item(i)
    Map1.Refresh
    MsgBox ("continue...")
Next
layer.Symbol.Custom = Nothing
Map1.Refresh
End Sub

Private Sub Map1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
If Button = 1 Then
Dim r As MapObjects2.Rectangle
Set r = Map1.TrackRectangle
Set Map1.Extent = r
End If
If Button = 2 Then
Set Map1.Extent = Map1.FullExtent
End If

End Sub

⌨️ 快捷键说明

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