-
Notifications
You must be signed in to change notification settings - Fork 1
/
mdimain.frm
146 lines (119 loc) · 3.07 KB
/
mdimain.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
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.MDIForm mdimain
BackColor = &H00000000&
Caption = "HTML FUN PUZZLES"
ClientHeight = 7650
ClientLeft = 165
ClientTop = 480
ClientWidth = 9450
Icon = "mdimain.frx":0000
LinkTopic = "MDIForm1"
Picture = "mdimain.frx":6852
StartUpPosition = 2 'CenterScreen
WindowState = 2 'Maximized
Begin MSComDlg.CommonDialog cmd
Left = 0
Top = 360
_ExtentX = 847
_ExtentY = 847
_Version = 393216
DefaultExt = """htut"""
DialogTitle = "Open tutorial file"
Filter = "Tutorial Files|*.htut"
End
Begin VB.Menu mnufile
Caption = "&File"
Begin VB.Menu mnunew
Caption = "&New Game"
Visible = 0 'False
End
Begin VB.Menu mnuselect
Caption = "Select tutorial"
End
Begin VB.Menu mnudash
Caption = "-"
End
Begin VB.Menu mnudownload
Caption = "&Download More Tutorials"
End
Begin VB.Menu mnudashb
Caption = "-"
Visible = 0 'False
End
Begin VB.Menu mnumyt
Caption = "Run HTML EDITOR"
Visible = 0 'False
End
Begin VB.Menu mnudashc
Caption = "-"
End
Begin VB.Menu mnuexit
Caption = "&Exit"
End
End
Begin VB.Menu mnuabout
Caption = "&About"
End
End
Attribute VB_Name = "mdimain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Function ShellExecute Lib _
"shell32.dll" Alias "ShellExecuteA" _
(ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
Private SW_SHOWNORMAL
Private Sub MDIForm_Initialize()
On Error GoTo z
If FileExists(App.Path & "\back.jpg") = True Then
Me.Picture = LoadPicture((App.Path & "\back.jpg"))
Me.Show
End If
z:
End Sub
Private Sub MDIForm_Load()
Dim toolfrm As New frmmain
toolfrm.Show
End Sub
Private Sub MDIForm_Unload(Cancel As Integer)
Unload frmAbout
End Sub
Private Sub mnuabout_Click()
Load frmAbout
frmAbout.Show
End Sub
Private Sub mnudownload_Click()
ShellExecute Me.hwnd, _
vbNullString, _
"https://go.ehmad11.com/hfp", _
vbNullString, _
"c:\", _
SW_SHOWNORMAL
End Sub
Private Sub mnuexit_Click()
Unload Me
End Sub
Private Sub mnumyt_Click()
Shell (App.Path & "\Editor.exe")
'Dim frmt As New myp
'frmt.Show
End Sub
Private Sub mnuselect_Click()
On Error Resume Next
cmd.InitDir = App.Path & "\"
cmd.ShowOpen
If cmd.filename = "" Then
Else
tutf = cmd.filename
Dim Form As New Form1
Form.Show
'Unload Me
End If
End Sub