-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlicence.frm
163 lines (145 loc) · 4.9 KB
/
licence.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
VERSION 5.00
Begin VB.Form licence
BorderStyle = 3 'Fixed Dialog
Caption = "Licence Agreement Accept or Decline..."
ClientHeight = 4245
ClientLeft = 45
ClientTop = 330
ClientWidth = 5055
Icon = "licence.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4245
ScaleWidth = 5055
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.PictureBox licencePicture
BackColor = &H00414D38&
Height = 4245
Left = -60
Picture = "licence.frx":058A
ScaleHeight = 4185
ScaleWidth = 5055
TabIndex = 0
Top = -15
Width = 5115
Begin VB.TextBox txtLicenceTextBox
BackColor = &H00414D38&
ForeColor = &H00FFFFFF&
Height = 2685
Left = 315
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 5
Top = 405
Width = 4455
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "Accept"
ForeColor = &H8000000E&
Height = 210
Left = 4200
TabIndex = 4
ToolTipText = "If you accept the program will run"
Top = 3795
Width = 600
End
Begin VB.Label declineLabel
BackStyle = 0 'Transparent
Caption = "Decline"
ForeColor = &H8000000E&
Height = 210
Left = 3375
TabIndex = 3
ToolTipText = "If you decline the program will close"
Top = 3795
Width = 600
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
BeginProperty Font
Name = "Arial"
Size = 6.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 570
Left = 360
TabIndex = 2
Top = 3180
Width = 4380
End
Begin VB.Label licenceAgreement
BackStyle = 0 'Transparent
Caption = "Licence Agreement"
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 225
Left = 315
TabIndex = 1
Top = 120
Width = 1530
End
End
End
Attribute VB_Name = "licence"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'---------------------------------------------------------------------------------------
' Procedure : declineLabel_Click
' Author : beededea
' Date : 27/10/2020
' Purpose :
'---------------------------------------------------------------------------------------
'
Private Sub declineLabel_Click()
Dim ofrm As Form
Dim slicence As String
On Error GoTo declineLabel_Click_Error
MsgBox "Please uninstall and remove Steamydock" & vbCr & "from your computer."
For Each ofrm In Forms
Unload ofrm
Next
slicence = "0"
PutINISetting "Software\SteamyDockSettings", "Licence", slicence, toolSettingsFile
End
On Error GoTo 0
Exit Sub
declineLabel_Click_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure declineLabel_Click of Form licence"
End Sub
'---------------------------------------------------------------------------------------
' Procedure : Label2_Click
' Author : beededea
' Date : 27/10/2020
' Purpose :
'---------------------------------------------------------------------------------------
'
Private Sub Label2_Click()
Dim slicence As String
On Error GoTo Label2_Click_Error
licence.Hide
slicence = "1"
PutINISetting "Software\SteamyDockSettings", "Licence", slicence, toolSettingsFile
On Error GoTo 0
Exit Sub
Label2_Click_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure Label2_Click of Form licence"
End Sub