forked from Marshallx/Launch-Base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmSplash.frm
75 lines (71 loc) · 2.25 KB
/
frmSplash.frm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
VERSION 5.00
Begin VB.Form frmSplash
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 0 'None
Caption = "Launch Base"
ClientHeight = 3600
ClientLeft = 0
ClientTop = 0
ClientWidth = 4800
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Moveable = 0 'False
ScaleHeight = 3600
ScaleWidth = 4800
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.Label lblProgress
BackStyle = 0 'Transparent
Caption = "Starting Launch Base..."
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0FFFF&
Height = 255
Left = 60
TabIndex = 0
Top = 60
Width = 4695
End
Begin VB.Shape pbarSplash
BorderStyle = 0 'Transparent
FillColor = &H00C0FFFF&
FillStyle = 0 'Solid
Height = 30
Left = 45
Top = 3550
Width = 4710
End
End
Attribute VB_Name = "frmSplash"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public pbarWidth As Integer
Public pbarWidthPerUnit As Integer
Private Sub Form_Load()
Set frmSplash.Picture = LoadPicture(JoinPath(EXEDIR, "splash.bmp"))
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set frmSplash.Picture = Nothing
End Sub
Public Sub PROGRESS(Optional ByVal sMsg As String = "", Optional ByVal Units As Integer = 1)
pbarWidth = pbarWidth + (pbarWidthPerUnit * Units)
pbarSplash.Width = pbarWidth
pbarSplash.Refresh
If Len(sMsg) <> 0 Then
lblProgress.Caption = sMsg
lblProgress.Refresh
End If
End Sub