home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmMain
- BackColor = &H00000000&
- BorderStyle = 1 'Fixed Single
- Caption = "VBCredits"
- ClientHeight = 1575
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 5625
- BeginProperty Font
- Name = "Fixedsys"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 105
- ScaleMode = 3 'Pixel
- ScaleWidth = 375
- StartUpPosition = 3 'Windows Default
- Attribute VB_Name = "frmMain"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Dim myCredits As New cCredits
- Private Sub Form_Load()
- Dim CurTime As Long, NextTime As Long
- Me.Show
- NextTime = timeGetTime() + 50
- myCredits.PosY = Me.scaleheight
- Call LoadTXT
- SetTextAlign Me.hDC, TA_CENTER
- Do While DoEvents()
- CurTime = timeGetTime()
- If CurTime >= NextTime Then
- Me.Cls
-
- myCredits.Move -1
- myCredits.Draw Me.hDC, Me.scalewidth, Me.scaleheight
-
- NextTime = CurTime + 50
- End If
- Loop
- End Sub
- Public Sub LoadTXT()
- ' Load strings for credits class
- ReDim Strings(0)
- Open App.Path & "\credits.txt" For Input As #1
- Do Until EOF(1)
- ReDim Preserve Strings(UBound(Strings) + 1)
- Input #1, Strings(UBound(Strings))
- Loop
- Close #1
- End Sub
-