📄 frmsetinitworkspace.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form frmSetInitWorkSpace
BorderStyle = 4 'Fixed ToolWindow
Caption = "设置初始化工作空间"
ClientHeight = 1215
ClientLeft = 45
ClientTop = 315
ClientWidth = 8610
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1215
ScaleWidth = 8610
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin MSComDlg.CommonDialog CommonDialog1
Left = 1950
Top = 720
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CommandButton Command3
Caption = "退出(&E)"
Height = 345
Left = 6780
TabIndex = 4
Top = 780
Width = 1035
End
Begin VB.CommandButton Command2
Caption = "保存(&O)"
Height = 345
Left = 5730
TabIndex = 3
Top = 780
Width = 1035
End
Begin VB.CommandButton Command1
Caption = "..."
Height = 345
Left = 7890
TabIndex = 2
Top = 330
Width = 645
End
Begin VB.TextBox Text1
BackColor = &H8000000F&
Height = 315
Left = 120
Locked = -1 'True
TabIndex = 1
Top = 360
Width = 7725
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "工作空间文件路径:"
Height = 180
Left = 120
TabIndex = 0
Top = 90
Width = 1620
End
End
Attribute VB_Name = "frmSetInitWorkSpace"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
'选择工作空间
On Error GoTo err_lab
With Me.CommonDialog1
.CancelError = True
.DialogTitle = "打开工作空间"
.InitDir = App.Path + "\地图数据"
.Filter = "*.Wor|*.Wor"
.FileName = ""
.ShowOpen
If Len(.FileName) = 0 Then Exit Sub
Me.Text1.Text = .FileName
End With
Exit Sub
err_lab:
End Sub
Private Sub Command2_Click()
'确定(保存工作空间路径)
Dim sPath As String
sPath = Me.Text1.Text
Set_ProfileStringINI "Project", "WorkPath", sPath, App.Path + "\ProCFG.Ini"
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
Me.Text1.Text = g_InitWorkSpace
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -