-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFormSplash.frm
323 lines (308 loc) · 10 KB
/
FormSplash.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
VERSION 5.00
Begin VB.Form FormSplash
BackColor = &H00000000&
BorderStyle = 0 'None
ClientHeight = 3510
ClientLeft = 0
ClientTop = 0
ClientWidth = 5790
ClipControls = 0 'False
ControlBox = 0 'False
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
KeyPreview = -1 'True
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3510
ScaleWidth = 5790
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "App.Comments"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00404040&
Height = 930
Index = 6
Left = 510
TabIndex = 6
Top = 1005
Width = 3165
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Versão: 1.4.8888"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00404040&
Height = 195
Index = 3
Left = 330
TabIndex = 3
Top = 2085
Width = 1485
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "App.ProductName"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00404040&
Height = 345
Index = 2
Left = 345
TabIndex = 2
Top = 555
Width = 3750
WordWrap = -1 'True
End
Begin VB.Image imgIcon
Height = 435
Left = 4935
Top = 645
Width = 435
End
Begin VB.Shape Shape1
BorderColor = &H00C48902&
BorderWidth = 15
Height = 795
Index = 0
Left = 4755
Top = 465
Width = 795
End
Begin VB.Shape Shape1
BorderColor = &H00FFCA88&
BorderWidth = 15
FillColor = &H008D550A&
Height = 795
Index = 1
Left = 4290
Top = 855
Width = 795
End
Begin VB.Shape Shape1
BorderColor = &H0025B1DA&
BorderWidth = 15
Height = 795
Index = 2
Left = 3870
Top = 1395
Width = 795
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "r"
BeginProperty Font
Name = "Marlett"
Size = 9.75
Charset = 2
Weight = 500
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 195
Index = 0
Left = 5505
TabIndex = 0
Top = 30
Width = 195
End
Begin VB.Label Label1
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00F3F3F3&
BorderStyle = 1 'Fixed Single
Caption = $"FormSplash.frx":0000
ForeColor = &H80000008&
Height = 660
Index = 5
Left = 105
TabIndex = 5
Top = 2490
Width = 5670
WordWrap = -1 'True
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "By: Heliomar P. Marques"
BeginProperty Font
Name = "Verdana"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0025B1DA&
Height = 240
Index = 1
Left = 105
TabIndex = 1
Top = 0
Width = 2400
End
Begin VB.Shape Shape1
BackColor = &H00E0E0E0&
BackStyle = 1 'Opaque
BorderStyle = 0 'Transparent
Height = 1290
Index = 6
Left = 360
Top = 255
Width = 135
End
Begin VB.Shape Shape1
BackColor = &H00C0C0C0&
BackStyle = 1 'Opaque
BorderStyle = 0 'Transparent
Height = 1755
Index = 5
Left = 240
Top = 255
Width = 135
End
Begin VB.Shape Shape1
BackColor = &H00808080&
BackStyle = 1 'Opaque
BorderStyle = 0 'Transparent
Height = 2055
Index = 3
Left = 120
Top = 255
Width = 135
End
Begin VB.Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "gtApp.URL"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 195
Index = 4
Left = 4800
TabIndex = 4
Top = 3195
Width = 885
End
Begin VB.Shape Shape1
BackColor = &H00FFFFFF&
BackStyle = 1 'Opaque
Height = 2670
Index = 4
Left = 105
Top = 240
Width = 5670
End
End
Attribute VB_Name = "FormSplash"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
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 Const SW_SHOWNORMAL = 1
'Sendo usada para fechar as janelas dos Aplicativos externos
'E para Drag em Forms
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Declare Function ReleaseCapture Lib "user32" () As Long
'Private Const WM_CLOSE = &H10
Private Const WM_NCLBUTTONDOWN = &HA1
Private Const HTCAPTION = 2
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyEscape Then Unload Me
End Sub
Private Sub Form_Load()
Label1(2).Caption = App.ProductName
Label1(6).Caption = App.Comments
Label1(3).Caption = "Versão: " & App.Major & "." & Format(App.Minor, "00") & "." & Format(App.Revision, "000")
Label1(4).Caption = "https://navto.me/qualita-apps"
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
Call DragForm
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
Label1(0).ForeColor = vbWhite
Label1(4).ForeColor = vbWhite
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Set FormSplash = Nothing
End Sub
Private Sub Label1_Click(Index As Integer)
On Local Error Resume Next
'Dim email As String
Select Case Index
Case 0
Unload Me
Case 4
' email = Replace(Label1(4).Caption, "Contato: ", "mailto:")
' Call ShellExecute(0&, vbNullString, email, vbNullString, "C:\", SW_SHOWNORMAL)
Call ShellExecute(Me.hwnd, "open", Label1(4).Caption, vbNullString, vbNullString, SW_SHOWNORMAL)
End Select
End Sub
Public Sub DragForm()
On Local Error Resume Next
'Move the borderless form...
Call ReleaseCapture
Call SendMessage(Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0)
End Sub
Private Sub Label1_MouseDown(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)
If Index = 1 Then Call DragForm
End Sub
Private Sub Label1_MouseMove(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)
If Index = 0 Or Index = 4 Then Label1(Index).ForeColor = &H25B1DA
End Sub
Public Sub CloseIn(ByVal dwMilliseconds As Long)
Me.Visible = True
Me.ZOrder 0
Sleep dwMilliseconds
Unload Me
End Sub