📄 frmfiles.frm
字号:
VERSION 5.00
Begin VB.Form frmFileSel
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "MVaders - Load Game"
ClientHeight = 2850
ClientLeft = 2145
ClientTop = 3255
ClientWidth = 5010
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Icon = "FRMFILES.frx":0000
LinkTopic = "Form1"
PaletteMode = 1 'UseZOrder
ScaleHeight = 2850
ScaleWidth = 5010
Begin VB.CommandButton cmdCancel
Appearance = 0 'Flat
Caption = "&Cancel"
Height = 375
Left = 3840
TabIndex = 2
Top = 660
Width = 1095
End
Begin VB.CommandButton cmdLoad
Appearance = 0 'Flat
Caption = "&Load"
Height = 375
Left = 3840
TabIndex = 1
Top = 180
Width = 1095
End
Begin VB.ListBox lstFiles
Appearance = 0 'Flat
Height = 2565
Left = 120
TabIndex = 0
Top = 180
Width = 3615
End
End
Attribute VB_Name = "frmFileSel"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdCancel_Click()
'Hide this form
Unload frmFileSel
End Sub
Private Sub cmdLoad_Click()
Dim i As Integer
'If a file is selected then load it
If lstFiles.ListIndex >= 0 Then
i = iLoadScenario(lstFiles.Text)
Else
MsgBox "No file selected"
Exit Sub
End If
'Hide this form
Unload frmFileSel
End Sub
Private Sub Form_Activate()
'Build list of available files
ScanDir lstFiles
End Sub
Private Sub Form_Load()
'Position the form
CenterForm Me
End Sub
Private Sub lstFiles_DblClick()
Dim i As Integer
'If a file is selected then load it
If lstFiles.ListIndex >= 0 Then
i = iLoadScenario(lstFiles.Text)
Else
MsgBox "No file selected"
Exit Sub
End If
'Hide this form
Unload frmFileSel
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -