📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
BorderStyle = 1 'Fixed Single
Caption = "某层全图显示"
ClientHeight = 2835
ClientLeft = 45
ClientTop = 330
ClientWidth = 5160
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2835
ScaleWidth = 5160
StartUpPosition = 2 '屏幕中心
Begin VB.ListBox List1
Height = 2220
Left = 120
TabIndex = 2
Top = 240
Width = 2655
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 3600
TabIndex = 1
Top = 240
Width = 1095
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 3600
TabIndex = 0
Top = 2160
Width = 1095
End
Begin VB.Label Label1
Caption = "已打开的所有自定义图层"
Height = 255
Left = 240
TabIndex = 3
Top = 0
Width = 2535
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If List1.Text <> "" Then
Set Form1.Map1.Bounds = Form1.Map1.Layers.Item(List1.Text).Bounds
End If
Hide
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Dim ly As Layer
For Each ly In Form1.Map1.Layers
List1.AddItem ly.Name
Next ly
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -