-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathOPCIONES.FRM
232 lines (214 loc) · 7.34 KB
/
OPCIONES.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
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 = 4080
ClientLeft = 1365
ClientTop = 2745
ClientWidth = 7200
Icon = "Opciones.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4080
ScaleWidth = 7200
ShowInTaskbar = 0 'False
Begin VB.CommandButton cmd
Caption = "&Aceptar"
Height = 345
Left = 5880
TabIndex = 9
Top = 3675
Width = 1185
End
Begin VB.Frame Frame1
Caption = "Comandos críticos"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2955
Left = 180
TabIndex = 1
Top = 480
Width = 6825
Begin VB.TextBox txtComando
Height = 285
Left = 120
TabIndex = 4
Top = 600
Width = 2445
End
Begin VB.ListBox lisComando
Height = 1860
Left = 120
Style = 1 'Checkbox
TabIndex = 3
Top = 930
Width = 2445
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "Estos comando criticos se ejecutaran solo con la confirmacion por parte del usuario."
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 390
Left = 2625
TabIndex = 8
Top = 2385
Width = 3885
WordWrap = -1 'True
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "UPDATE , DELETE , ALTER, DROP ..."
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 195
Left = 2625
TabIndex = 7
Top = 1470
Width = 3330
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "Ejemplos de comandos criticos :"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 2625
TabIndex = 6
Top = 1155
Width = 2745
End
Begin VB.Label Label2
Caption = "Marque la casilla para activar comando critico. Para desactivar desmarque comando critico."
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 585
Index = 0
Left = 2625
TabIndex = 5
Top = 600
Width = 4050
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "Digite comando ..."
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 120
TabIndex = 2
Top = 360
Width = 1575
End
End
Begin MSComctlLib.TabStrip tabOpciones
Height = 3525
Left = 90
TabIndex = 0
Top = 90
Width = 7035
_ExtentX = 12409
_ExtentY = 6218
_Version = 393216
BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628}
NumTabs = 1
BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628}
Caption = "Seguridad"
Object.ToolTipText = "Configura comandos criticos"
ImageVarType = 2
EndProperty
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
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 Sub cmd_Click()
Dim NComandos
Dim k As Integer
ReDim Comandos(0)
NComandos = lisComando.ListCount - 1
For k = 0 To NComandos
ReDim Preserve Comandos(k + 1)
Comandos(k + 1).Comando = lisComando.List(k)
Comandos(k + 1).Activo = lisComando.Selected(k)
Next k
Unload Me
End Sub
Private Sub Form_Load()
Dim NComandos
Dim k As Integer
NComandos = UBound(Comandos)
CenterWindow hwnd
For k = 1 To NComandos
lisComando.AddItem Comandos(k).Comando
If Comandos(k).Activo Then
lisComando.Selected(k - 1) = True
End If
Next k
End Sub
Private Sub txtComando_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyReturn Then
If Trim$(txtComando.Text) <> "" Then
lisComando.AddItem txtComando.Text
lisComando.Selected(lisComando.NewIndex) = True
End If
End If
End Sub