⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 splash_frm.frm

📁 教务处成绩统计系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Splash_frm 
   Appearance      =   0  'Flat
   AutoRedraw      =   -1  'True
   BackColor       =   &H80000005&
   BorderStyle     =   0  'None
   Caption         =   "教务处成绩统计系统"
   ClientHeight    =   2505
   ClientLeft      =   2715
   ClientTop       =   3420
   ClientWidth     =   6015
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "splash_frm.frx":0000
   ScaleHeight     =   2505
   ScaleWidth      =   6015
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.Timer Timer1 
      Interval        =   10
      Left            =   600
      Top             =   120
   End
   Begin VB.Timer Timer4 
      Interval        =   100
      Left            =   3360
      Top             =   360
   End
   Begin VB.Shape Shape1 
      BorderColor     =   &H00FF0000&
      BorderWidth     =   2
      Height          =   2500
      Left            =   0
      Top             =   0
      Width           =   6015
   End
   Begin VB.Line Line1 
      BorderColor     =   &H00FF8080&
      BorderWidth     =   2
      X1              =   4800
      X2              =   4800
      Y1              =   240
      Y2              =   3240
   End
   Begin VB.Line Line2 
      BorderColor     =   &H8000000A&
      BorderWidth     =   2
      X1              =   3240
      X2              =   3240
      Y1              =   240
      Y2              =   3240
   End
   Begin VB.Line Line3 
      BorderColor     =   &H0000FFFF&
      BorderWidth     =   2
      X1              =   360
      X2              =   360
      Y1              =   0
      Y2              =   3000
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      BeginProperty Font 
         Name            =   "华文行楷"
         Size            =   26.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   555
      Left            =   840
      TabIndex        =   2
      Top             =   480
      Width           =   150
   End
   Begin VB.Label Label2 
      Appearance      =   0  'Flat
      AutoSize        =   -1  'True
      BackColor       =   &H80000005&
      BackStyle       =   0  'Transparent
      Caption         =   "策划:李钢        Produced by 李成竹"
      ForeColor       =   &H80000006&
      Height          =   180
      Left            =   1200
      TabIndex        =   1
      Top             =   1920
      Width           =   3240
   End
   Begin VB.Label Label3 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      BackStyle       =   0  'Transparent
      Caption         =   "All Rights Reserved @2004~…"
      BeginProperty Font 
         Name            =   "@Dotum"
         Size            =   9
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000001&
      Height          =   165
      Left            =   240
      TabIndex        =   0
      Top             =   2280
      Width           =   3255
   End
End
Attribute VB_Name = "splash_frm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Option Explicit


Dim TheTitle As String
Dim IntArray(7), i As Integer
Dim itimer As Long

Private Sub Form_Click()
Unload Me
main_frm.Show
End Sub

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Unload Me
main_frm.Show
End Sub

Private Sub Form_Load()

Label2.Visible = False
Label3.Visible = False
'--------------------------------
IntArray(0) = Line1.X1 'sets all the variables so the ani doesnt start at zero
IntArray(1) = Line1.X2
IntArray(3) = Line2.X2
IntArray(2) = Line2.X1

'along with changing the timer change these around as well
'color variables
IntArray(5) = 0
IntArray(7) = 0
IntArray(6) = 255

IntArray(4) = 0 'sets the counter

'just put your title on the form's caption; it will appear on the form
'the animation ends when its all typed up...
'make the name long
TheTitle = Me.Caption
End Sub

Private Sub Label1_Click()
Unload Me
main_frm.Show
End Sub

Private Sub Label2_Click()
Unload Me
main_frm.Show
End Sub

Private Sub Timer1_Timer()
IntArray(0) = IntArray(0) + 100 'calculates the variables
IntArray(1) = IntArray(1) - 100

Line1.X1 = IntArray(0) 'sets the properties
Line1.X2 = IntArray(1)

IntArray(2) = IntArray(2) - 100 'calculate the variables
IntArray(3) = IntArray(3) + 100

Line2.X1 = IntArray(2) 'set the properties
Line2.X2 = IntArray(3)
End Sub

Private Sub Timer4_Timer()
itimer = itimer + 1

If itimer = 60 Then
    Unload Me
    main_frm.Show
End If

IntArray(5) = IntArray(5) + 5: If IntArray(5) = 255 Then IntArray(5) = 0
IntArray(7) = IntArray(7) + 5: If IntArray(7) = 255 Then IntArray(7) = 0
IntArray(6) = IntArray(6) - 5: If IntArray(6) = 0 Then IntArray(6) = 255
Label1.Visible = False
Label1.ForeColor = RGB(IntArray(5), IntArray(6), IntArray(7))
Label1.Visible = True

If itimer Mod 4 = 0 Then
    Line3.X1 = Line3.X1 + 300 'do the ani for the typing
    Line3.X2 = Line3.X2 + 300

    If Len(Label1.Caption) = Len(TheTitle) Then 'if its done

        Timer1.Enabled = False

        Line3.Visible = False 'hide the ani
        Line2.Visible = False
        Line1.Visible = False

        Label2.Visible = True
        Label3.Visible = True

    Else
        Label1.Caption = Mid(TheTitle, 1, IntArray(4)) 'place the next char for typing effect
        IntArray(4) = IntArray(4) + 1 'add to the counter
    End If
End If
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -