📄 mapset.frm
字号:
VERSION 5.00
Begin VB.Form 地图设置
Caption = "地图初始点设置"
ClientHeight = 3105
ClientLeft = 60
ClientTop = 450
ClientWidth = 4605
Icon = "mapset.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3105
ScaleWidth = 4605
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.PictureBox Picture1
AutoSize = -1 'True
BorderStyle = 0 'None
Height = 720
Left = 120
Picture = "mapset.frx":6852
ScaleHeight = 720
ScaleWidth = 720
TabIndex = 11
Top = 120
Width = 720
End
Begin VB.CommandButton Command2
Caption = "重置(&R)"
Height = 495
Left = 1920
TabIndex = 3
Top = 1920
Width = 975
End
Begin VB.CommandButton Command1
Caption = "保存设置(&S)"
Height = 495
Left = 600
TabIndex = 2
Top = 1920
Width = 975
End
Begin VB.CommandButton Command3
Caption = "退出(&Q)"
Height = 495
Left = 3240
TabIndex = 4
Top = 1920
Width = 975
End
Begin VB.TextBox Text1
Height = 375
Left = 2040
TabIndex = 0
Top = 360
Width = 1935
End
Begin VB.TextBox Text2
Height = 375
Left = 2040
TabIndex = 1
Top = 1080
Width = 1935
End
Begin VB.Label Label6
Caption = "Label6"
Height = 135
Left = 960
TabIndex = 10
Top = 2640
Visible = 0 'False
Width = 135
End
Begin VB.Label Label5
Caption = "Label5"
Height = 135
Left = 720
TabIndex = 9
Top = 2640
Visible = 0 'False
Width = 135
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "请输入经度:"
Height = 180
Left = 840
TabIndex = 8
Top = 480
Width = 1080
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "请输入纬度:"
Height = 180
Left = 840
TabIndex = 7
Top = 1200
Width = 1080
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "度"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 4080
TabIndex = 6
Top = 480
Width = 240
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "度"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 4080
TabIndex = 5
Top = 1200
Width = 240
End
End
Attribute VB_Name = "地图设置"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim a As String
jingdu = Text1.Text
weidu = Text2.Text
ClassIni.IniFileName = App.Path & "\Config\mapset.ini"
Label5.Caption = ClassIni.WriteString("MapSet", "jingdu", jingdu)
Label6.Caption = ClassIni.WriteString("MapSet", "weidu", weidu)
If Label5.Caption = "True" And Label6.Caption = "True" Then
a = MsgBox("保存成功!", , "操作提示")
End If
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
ClassIni.IniFileName = App.Path & "\Config\mapset.ini"
jingdu = ClassIni.ReadString("MapSet", "jingdu", 9999)
weidu = ClassIni.ReadString("MapSet", "weidu", 9999)
Text1.Text = jingdu
Text2.Text = weidu
End Sub
Private Sub Form_Unload(Cancel As Integer)
系统主窗口.Enabled = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -