-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOpciones.frm
More file actions
317 lines (285 loc) · 9.23 KB
/
Copy pathOpciones.frm
File metadata and controls
317 lines (285 loc) · 9.23 KB
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
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmOpciones
BorderStyle = 3 'Fixed Dialog
Caption = "Opciones"
ClientHeight = 3090
ClientLeft = 2955
ClientTop = 3045
ClientWidth = 6285
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "Opciones.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 206
ScaleMode = 3 'Pixel
ScaleWidth = 419
ShowInTaskbar = 0 'False
Begin VB.Frame fraOpci
Caption = "Configuración de internet"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2565
Index = 2
Left = 1320
TabIndex = 7
Top = 285
Width = 4380
Begin VB.ListBox lstPag
Height = 1185
Left = 105
Style = 1 'Checkbox
TabIndex = 11
Top = 1095
Width = 4170
End
Begin VB.TextBox txtPagIni
Height = 285
Left = 120
TabIndex = 9
Text = "http:/www.vbsoftware.cl"
Top = 510
Width = 4170
End
Begin VB.Label lblPaginas
AutoSize = -1 'True
Caption = "Páginas visitadas (para eliminar marcar casilla)"
Height = 195
Left = 135
TabIndex = 10
Top = 840
Width = 3315
End
Begin VB.Label lblPag
AutoSize = -1 'True
Caption = "Página de inicio:"
Height = 195
Left = 135
TabIndex = 8
Top = 285
Width = 1155
End
End
Begin VB.CommandButton cmd
Caption = "&Salir"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 405
Index = 1
Left = 4965
TabIndex = 4
Top = 810
Width = 1215
End
Begin VB.CommandButton cmd
Caption = "&Aceptar"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 405
Index = 0
Left = 4965
TabIndex = 3
Top = 330
Width = 1215
End
Begin VB.Frame fraOpci
Caption = "Opciones miscelaneas"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2565
Index = 1
Left = 435
TabIndex = 2
Top = 375
Width = 4380
Begin VB.CheckBox chkOpci
Caption = "Respaldar libreria al salir"
Height = 225
Index = 1
Left = 135
TabIndex = 6
Top = 525
Width = 2265
End
Begin VB.CheckBox chkOpci
Caption = "Colorizar código"
Height = 225
Index = 0
Left = 135
TabIndex = 5
Top = 270
Width = 1515
End
End
Begin MSComctlLib.TabStrip tabOpc
Height = 3045
Left = 375
TabIndex = 1
Top = 0
Width = 4530
_ExtentX = 7990
_ExtentY = 5371
MultiRow = -1 'True
HotTracking = -1 'True
Separators = -1 'True
_Version = 393216
BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628}
NumTabs = 2
BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628}
Caption = "&Libreria"
Object.ToolTipText = "Opciones de libreria"
ImageVarType = 2
EndProperty
BeginProperty Tab2 {1EFB659A-857C-11D1-B16A-00C0F0283628}
Caption = "&Internet"
Object.ToolTipText = "Configuración de internet"
ImageVarType = 2
EndProperty
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.PictureBox picDraw
Appearance = 0 'Flat
AutoRedraw = -1 'True
BackColor = &H80000005&
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0FFFF&
Height = 3045
Left = 0
ScaleHeight = 201
ScaleMode = 3 'Pixel
ScaleWidth = 22
TabIndex = 0
Top = 0
Width = 360
End
End
Attribute VB_Name = "frmOpciones"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private mGradient As New clsGradient
'graba las opciones de comparacion
Private Sub GrabarOpciones()
Dim k As Integer
Dim n As Integer
glbColorizarCodigo = chkOpci(0).Value
glbRespaldarLibreria = chkOpci(1).Value
glbPaginaInicio = txtPagIni.Text
'eliminar las seleccionadas
n = 0
For k = lstPag.SelCount To 0 Step -1
If lstPag.Selected(k) Then
frmMain.cboAddress.RemoveItem k
Else
n = n + 1
End If
Next k
Call GrabaIni(C_INI, "opciones", "colorizar", chkOpci(0).Value)
Call GrabaIni(C_INI, "opciones", "respaldar", chkOpci(1).Value)
Call GrabaIni(C_INI, "web", "numero", n)
'grabar las paginas marcadas
For k = 0 To lstPag.ListCount - 1
Call GrabaIni(C_INI, "web", "www" & k + 1, lstPag.List(k))
Next k
End Sub
Private Sub cmd_Click(Index As Integer)
If Index = 0 Then
Call GrabarOpciones
End If
Unload Me
End Sub
Private Sub Form_Load()
Dim k As Integer
Call Hourglass(hWnd, True)
CenterWindow hWnd
With mGradient
.Angle = 90 '.Angle
.Color1 = 16744448
.Color2 = 0
.Draw picDraw
End With
Call FontStuff(picDraw, Me.Caption)
picDraw.Refresh
If glbColorizarCodigo Then
chkOpci(0).Value = 1
Else
chkOpci(0).Value = 0
End If
If glbRespaldarLibreria Then
chkOpci(1).Value = 1
Else
chkOpci(1).Value = 0
End If
fraOpci(1).ZOrder 0
fraOpci(2).Left = fraOpci(1).Left
fraOpci(2).Top = fraOpci(1).Top
fraOpci(2).Height = fraOpci(1).Height
fraOpci(2).Width = fraOpci(1).Width
txtPagIni.Text = glbPaginaInicio
For k = 0 To frmMain.cboAddress.ListCount - 1
lstPag.AddItem frmMain.cboAddress.List(k)
Next k
Call Hourglass(hWnd, False)
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set frmOpciones = Nothing
End Sub
Private Sub tabOpc_Click()
fraOpci(tabOpc.SelectedItem.Index).ZOrder 0
End Sub