-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrmHelp.frm
151 lines (120 loc) · 5.06 KB
/
frmHelp.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
VERSION 5.00
Begin VB.Form frmHelp
BackColor = &H80000010&
BorderStyle = 3 'Fixed Dialog
Caption = "Guns Help"
ClientHeight = 4320
ClientLeft = 45
ClientTop = 330
ClientWidth = 3870
Icon = "frmHelp.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4320
ScaleWidth = 3870
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
WhatsThisHelp = -1 'True
Begin VB.Label lblMessage
BackColor = &H80000010&
Caption = "lblMessage"
ForeColor = &H80000014&
Height = 4275
Left = 120
TabIndex = 0
Top = 120
Width = 3630
End
Begin VB.Menu mnuBtnContextMenu
Caption = "Invisible"
Visible = 0 'False
Begin VB.Menu mnuBtnWhatsThis
Caption = "What's This?"
End
End
End
Attribute VB_Name = "frmHelp"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public ThisControl As Control
Private Sub Form_Load()
lblMessage.Caption = "Guns" & vbCrLf & vbCrLf & _
"The purpose of this game is to drop the desktop icons as quickly " & _
"as possible." & vbCrLf & _
"High scores exist per number of icons present on the desktop." & vbCrLf & _
"You can choose to express the highscore either in time or in the " & _
"number of shots needed. To do so just toggle the 'High score in shots fired' " & _
"option in the menu you just accessed." & vbCrLf & vbCrLf & _
"Start the game by clicking the 'Play' button; to end the " & _
"application click 'Exit'." & vbCrLf & _
"To get additional information on the game controls right-click " & _
"the control in question and select 'What's This?'. " & _
"You'll have to right-click text controls twice." & vbCrLf & _
"The game is over when the fire button stays disabled." & vbCrLf & vbCrLf & _
"Enjoy!"
End Sub
Private Sub mnuBtnWhatsThis_Click()
Me.Height = 1300
Select Case ThisControl.Name
Case "cmdFire"
lblMessage.Caption = _
"This button fires a shot. The button is disabled as long " & _
"as the fired bullet is still moving." & vbCrLf & _
"The hot key for this control is ALT+I."
Case "txtScore"
lblMessage.Caption = _
"This control keeps track of the game, either by displaying " & _
"the elapsed time in seconds or the number of shots fired."
Case "txtAngle"
lblMessage.Caption = _
"Enter in this textbox a value between 0 and 89 degrees." & vbCrLf & _
"The hot key for this control is 'A'."
Case "cmdIncreaseAngle"
Me.Height = 1100
lblMessage.Caption = _
"This button increases the angle by one." & vbCrLf & _
"The hot key for this control is 'O'."
Case "cmdDecreaseAngle"
Me.Height = 1100
lblMessage.Caption = _
"This button decreases the angle by one." & vbCrLf & _
"The hot key for this control is 'K'."
Case "txtVelocity"
lblMessage.Caption = _
"Enter in this textbox a velocity value between 0 and " & gintMaxVelocity & "." & vbCrLf & _
"The hot key for this control is 'V'."
Case "cmdIncreaseVelocity"
Me.Height = 1100
lblMessage.Caption = _
"This button increases the velocity by five." & vbCrLf & _
"The hot key for this control is 'P'."
Case "cmdDecreaseVelocity"
Me.Height = 1100
lblMessage.Caption = _
"This button decreases the velocity by five." & vbCrLf & _
"The hot key for this control is 'L'."
Case "cmdPlay"
Me.Height = 1500
lblMessage.Caption = _
"Initiate a game by pressing this button." & vbCrLf & _
"The game does not start until the icons are in postion." & vbCrLf & _
"The hot key for this control is ALT+P."
Case "cmdExit"
Me.Height = 1500
lblMessage.Caption = _
"Selecting this button will end the application." & vbCrLf & _
"The icons are placed back in their original positions." & vbCrLf & _
"The hot key for this control is ALT+E."
Case "picDesktop"
lblMessage.Caption = _
"This control shows the battlefield in which the icons " & _
"are situated. I also need it for other stuff that is " & _
"of no concern to you..."
End Select
Me.Show
End Sub