forked from syntax53/Nightmare-Redux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmAbout.frm
377 lines (358 loc) · 12.2 KB
/
frmAbout.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
VERSION 5.00
Begin VB.Form frmAbout
AutoRedraw = -1 'True
BackColor = &H00000000&
BorderStyle = 1 'Fixed Single
Caption = "About"
ClientHeight = 5475
ClientLeft = 240
ClientTop = 630
ClientWidth = 5910
ForeColor = &H00000000&
Icon = "frmAbout.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 5475
ScaleWidth = 5910
Begin VB.CommandButton cmdChangeLog
Caption = "[ changelog ]"
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Left = 3600
TabIndex = 12
Top = 5055
Width = 1035
End
Begin VB.TextBox txtScroll
Alignment = 2 'Center
BackColor = &H00000000&
BorderStyle = 0 'None
ForeColor = &H00FF8080&
Height = 2475
HideSelection = 0 'False
Left = 300
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 3
TabStop = 0 'False
Text = "frmAbout.frx":08CA
Top = 1020
Width = 5355
End
Begin VB.CommandButton cmdOK
Caption = "&Close"
Default = -1 'True
Height = 375
Left = 4800
TabIndex = 13
Top = 5040
Width = 975
End
Begin VB.Frame Frame1
BackColor = &H00000000&
Caption = "Thanks and Props"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF8080&
Height = 2895
Left = 120
TabIndex = 1
Top = 720
Width = 5655
Begin VB.Label Label1
BackColor = &H00000000&
ForeColor = &H00FFC0C0&
Height = 435
Index = 0
Left = 240
TabIndex = 2
Top = 2400
Width = 5235
End
End
Begin VB.Frame frmLinks
BackColor = &H00000000&
Caption = "WebLinks"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF8080&
Height = 1275
Left = 120
TabIndex = 4
Top = 3660
Width = 5655
Begin VB.Label lblLinks
Alignment = 1 'Right Justify
Appearance = 0 'Flat
BackColor = &H00000000&
Caption = "MajorMUD - Realm of Legends"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 255
Index = 3
Left = 3060
MousePointer = 2 'Cross
TabIndex = 8
Top = 900
Width = 2475
End
Begin VB.Label lblLinks
Alignment = 1 'Right Justify
Appearance = 0 'Flat
BackColor = &H00000000&
Caption = "MUDiNFO.NET"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 255
Index = 2
Left = 4140
MousePointer = 2 'Cross
TabIndex = 7
Top = 300
Width = 1395
End
Begin VB.Label lblLinks
Appearance = 0 'Flat
BackColor = &H00000000&
Caption = "Nightmare Redux Source Code"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 255
Index = 1
Left = 120
MousePointer = 2 'Cross
TabIndex = 6
Top = 900
Width = 2595
End
Begin VB.Label lblLinks
Appearance = 0 'Flat
BackColor = &H00000000&
Caption = "Nightmare Redux Forums"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 255
Index = 0
Left = 120
MousePointer = 2 'Cross
TabIndex = 5
Top = 300
Width = 2595
End
Begin VB.Label Label1
BackColor = &H00000000&
ForeColor = &H00FFC0C0&
Height = 435
Index = 1
Left = 240
TabIndex = 9
Top = 2400
Width = 5235
End
End
Begin VB.Label lblSynEmail
Appearance = 0 'Flat
BackColor = &H00000000&
Caption = "syntax53"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 255
Left = 1860
MousePointer = 2 'Cross
TabIndex = 10
Top = 5085
Width = 915
End
Begin VB.Label lblb2yb
BackColor = &H00000000&
Caption = "Brought to you by: "
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00E0E0E0&
Height = 255
Left = 120
TabIndex = 11
Top = 5100
Width = 1875
End
Begin VB.Label lblVersion
Alignment = 2 'Center
BackColor = &H00000000&
Caption = "Nightmare Redux v##"
BeginProperty Font
Name = "Arial"
Size = 18
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 495
Left = 240
TabIndex = 0
Top = 120
Width = 5415
End
End
Attribute VB_Name = "frmAbout"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Base 0
Option Explicit
'Dim iFileNum As Integer
'Dim lLineCount As Long
'Dim lLineHeight As Long
Dim objTooltip As clsToolTip
Private Sub cmdChangeLog_Click()
Load frmHelpChangeLog
End Sub
Private Sub cmdOK_Click()
Unload Me
End Sub
Private Sub Form_Load()
On Error Resume Next
Dim rc As RECT, i As Integer
Set objTooltip = New clsToolTip
With objTooltip
.DelayTime = 25
.VisibleTime = 10000
.BkColor = &HC0FFFF
.txtColor = &H0
.Style = 1 'ttStyleBalloon
End With
lblVersion.Caption = sMenuCaption
'lLineCount = 51
'lLineHeight = TextHeight("TEST") 'Get the height of text in file
'txtScroll.Height = lLineHeight * lLineCount
'picScroll.Left = 0
'picScroll.Visible = True
'tmrScroll.Enabled = True
Me.Top = 200
Me.Left = 200
For i = 0 To 3 'number of lbl links
rc.Left = lblLinks(i).Left \ Screen.TwipsPerPixelX
rc.Top = lblLinks(i).Top \ Screen.TwipsPerPixelY
rc.Bottom = (lblLinks(i).Top + lblLinks(i).Height) \ Screen.TwipsPerPixelX
rc.Right = (lblLinks(i).Left + lblLinks(i).Width) \ Screen.TwipsPerPixelY
Select Case i
Case 0:
objTooltip.SetToolTipItem frmLinks.hwnd, 0, rc.Left, rc.Top, rc.Right, rc.Bottom, "http://www.mudinfo.net/viewforum.php?f=44", False
Case 1:
objTooltip.SetToolTipItem frmLinks.hwnd, 0, rc.Left, rc.Top, rc.Right, rc.Bottom, "https://github.com/syntax53/Nightmare-Redux", False
Case 2:
objTooltip.SetToolTipItem frmLinks.hwnd, 0, rc.Left, rc.Top, rc.Right, rc.Bottom, "http://www.mudinfo.net/", False
Case 3:
objTooltip.SetToolTipItem frmLinks.hwnd, 0, rc.Left, rc.Top, rc.Right, rc.Bottom, "http://www.majormud.com/", False
End Select
Next
rc.Left = lblSynEmail.Left \ Screen.TwipsPerPixelX
rc.Top = lblSynEmail.Top \ Screen.TwipsPerPixelY
rc.Bottom = (lblSynEmail.Top + lblSynEmail.Height) \ Screen.TwipsPerPixelX
rc.Right = (lblSynEmail.Left + lblSynEmail.Width) \ Screen.TwipsPerPixelY
objTooltip.SetToolTipItem Me.hwnd, 0, rc.Left, rc.Top, rc.Right, rc.Bottom, "[email protected]", False
Me.Show
Me.SetFocus
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set objTooltip = Nothing
End Sub
Private Sub lblLinks_Click(Index As Integer)
Select Case Index
Case 0: Call ShellExecute(0&, "open", "http://www.mudinfo.net/viewforum.php?f=44", vbNullString, vbNullString, vbNormalFocus)
Case 1: Call ShellExecute(0&, "open", "https://github.com/syntax53/Nightmare-Redux", vbNullString, vbNullString, vbNormalFocus)
Case 2: Call ShellExecute(0&, "open", "http://www.mudinfo.net/", vbNullString, vbNullString, vbNormalFocus)
Case 3: Call ShellExecute(0&, "open", "http://www.majormud.com/", vbNullString, vbNullString, vbNormalFocus)
End Select
End Sub
Private Sub lblSynEmail_Click()
Call ShellExecute(0&, "open", "mailto:[email protected] &subject=Nightmare Redux", vbNullString, vbNullString, vbNormalFocus)
End Sub
'Private Sub tmrScroll_Timer()
'scroll txtScroll
' If txtScroll.Top + txtScroll.Height < picScroll.Top Then 'picScroll.Top
' txtScroll.Top = picScroll.Height
' Else
' txtScroll.Top = txtScroll.Top - 25
' End If
'End Sub
Private Sub txtScroll_GotFocus()
cmdOK.SetFocus
'Don't let the text box get focus, althought the text
'box is locked it looks bad to see a cursor in the
'text box as it scrolls up
End Sub