📄 about.frm
字号:
VERSION 5.00
Begin VB.Form FrmAbout
AutoRedraw = -1 'True
BorderStyle = 1 'Fixed Single
Caption = "关于"
ClientHeight = 6390
ClientLeft = 45
ClientTop = 330
ClientWidth = 10140
BeginProperty Font
Name = "System"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "About.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "About.frx":030A
ScaleHeight = 6390
ScaleWidth = 10140
Begin VB.Timer TimAbout
Interval = 1000
Left = 7560
Top = 3600
End
Begin VB.Label LabAbout
AutoSize = -1 'True
BackColor = &H00C0E0FF&
BackStyle = 0 'Transparent
ForeColor = &H00FF00FF&
Height = 240
Left = 3720
TabIndex = 0
Top = 3000
Width = 60
End
End
Attribute VB_Name = "FrmAbout"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private ReadStr() As String
Private DispStr As String
Private LineNum As Integer
Private BeginLineNum As Integer
Private Sub Form_DblClick()
Unload Me
End Sub
Private Sub Form_Load()
Dim i As Integer
Dim AboutFileName As String
LineNum = 0
If Len(Trim(PathName)) = 0 Then
PathLength = 250
PathName = Space(255)
Return_Var = GetCurrentDirectory(PathLength, PathName)
If Return_Var = 0 Then
gclsDatabase.CloseRDODatabaseConnection
Set gclsDatabase = Nothing
End
End If
PathName = Mid(Trim(PathName), 1, Len(Trim(PathName)) - 1)
End If
AboutFileName = Trim(PathName) & "\about.txt"
Open AboutFileName For Input As #1
Do While Not EOF(1)
Line Input #1, DispStr
LineNum = LineNum + 1
Loop
Close #1
If LineNum = 0 Then
Unload Me
Else
ReDim ReadStr(LineNum)
i = 0
Open AboutFileName For Input As #1
Do While Not EOF(1)
Line Input #1, ReadStr(i)
i = i + 1
Loop
Close #1
BeginLineNum = 0
j = BeginLineNum
DispStr = ""
For i = 0 To DispLineNum
DispStr = DispStr & ReadStr(j) & Chr(13) & Chr(10)
j = j + 1
If j = LineNum Then j = 0
Next i
LabAbout.Caption = DispStr
BeginLineNum = BeginLineNum + 1
If BeginLineNum = LineNum Then BeginLineNum = 0
End If
FrmAbout.ScaleHeight = FrmAbout.Height
FrmAbout.ScaleWidth = FrmAbout.Width
FrmAbout.Top = (Screen.Height - FrmAbout.Height - TitleHeight) / 2
FrmAbout.Left = (Screen.Width - FrmAbout.Width) / 2
End Sub
Private Sub TimAbout_Timer()
Dim i As Integer
Dim j As Integer
If LineNum = 0 Then
Unload Me
Else
j = BeginLineNum
DispStr = ""
For i = 0 To DispLineNum
DispStr = DispStr & ReadStr(j) & Chr(13) & Chr(10)
j = j + 1
If j = LineNum Then j = 0
Next i
LabAbout.Caption = DispStr
BeginLineNum = BeginLineNum + 1
If BeginLineNum = LineNum Then BeginLineNum = 0
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -