-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGraphOptions.frm
246 lines (241 loc) · 7.07 KB
/
GraphOptions.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
VERSION 5.00
Begin VB.Form GraphOptions
BorderStyle = 3 'Fixed Dialog
Caption = "Graph options"
ClientHeight = 3555
ClientLeft = 1125
ClientTop = 1290
ClientWidth = 2040
Icon = "GraphOptions.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3555
ScaleWidth = 2040
Begin VB.CommandButton Cancel
Cancel = -1 'True
Caption = "Cancel"
Height = 375
Left = 1080
TabIndex = 16
Top = 3120
Width = 855
End
Begin VB.CommandButton OK
Caption = "OK"
Default = -1 'True
Height = 375
Left = 120
TabIndex = 15
Top = 3120
Width = 855
End
Begin VB.CheckBox Check8
Caption = "Show graph"
Height = 255
Left = 0
TabIndex = 14
Top = 2640
Width = 2055
End
Begin VB.CheckBox Check7
Caption = "Bandwith"
Height = 255
Left = 360
TabIndex = 13
Top = 2280
Width = 1935
End
Begin VB.CheckBox Check6
Caption = "Number of clients"
Height = 255
Left = 360
TabIndex = 12
Top = 1920
Width = 1815
End
Begin VB.CheckBox Check5
Caption = "Packets/Frames"
Height = 255
Left = 360
TabIndex = 11
Top = 1560
Width = 1695
End
Begin VB.CheckBox Check4
Caption = "Frames"
Height = 255
Left = 360
TabIndex = 10
Top = 1200
Width = 1695
End
Begin VB.CheckBox Check3
Caption = "Packets"
Height = 255
Left = 360
TabIndex = 9
Top = 840
Width = 1455
End
Begin VB.CheckBox Check2
Caption = "Response time"
Height = 255
Left = 360
TabIndex = 8
Top = 480
Width = 1455
End
Begin VB.CheckBox Check1
Caption = "Cpu usage"
Height = 255
Left = 360
TabIndex = 7
Top = 120
Width = 1335
End
Begin VB.CommandButton Command1
BackColor = &H00000000&
Enabled = 0 'False
Height = 255
Index = 0
Left = 0
MaskColor = &H00000000&
Style = 1 'Graphical
TabIndex = 6
Top = 120
Width = 255
End
Begin VB.CommandButton Command1
BackColor = &H00000000&
Enabled = 0 'False
Height = 255
Index = 1
Left = 0
MaskColor = &H00000000&
Style = 1 'Graphical
TabIndex = 5
Top = 480
Width = 255
End
Begin VB.CommandButton Command1
BackColor = &H00000000&
Enabled = 0 'False
Height = 255
Index = 2
Left = 0
MaskColor = &H00000000&
Style = 1 'Graphical
TabIndex = 4
Top = 840
Width = 255
End
Begin VB.CommandButton Command1
BackColor = &H00000000&
Enabled = 0 'False
Height = 255
Index = 3
Left = 0
MaskColor = &H00000000&
Style = 1 'Graphical
TabIndex = 3
Top = 1200
Width = 255
End
Begin VB.CommandButton Command1
BackColor = &H00000000&
Enabled = 0 'False
Height = 255
Index = 4
Left = 0
MaskColor = &H00000000&
Style = 1 'Graphical
TabIndex = 2
Top = 2280
Width = 255
End
Begin VB.CommandButton Command1
BackColor = &H00000000&
Enabled = 0 'False
Height = 255
Index = 5
Left = 0
MaskColor = &H00000000&
Style = 1 'Graphical
TabIndex = 1
Top = 1560
Width = 255
End
Begin VB.CommandButton Command1
BackColor = &H00000000&
Enabled = 0 'False
Height = 255
Index = 6
Left = 0
MaskColor = &H00000000&
Style = 1 'Graphical
TabIndex = 0
Top = 1920
Width = 255
End
End
Attribute VB_Name = "GraphOptions"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cancel_Click()
Unload Me
End Sub
Private Sub Check8_Click()
If Check8.Value = 1 Then
Check1.Enabled = True
Check2.Enabled = True
Check3.Enabled = True
Check4.Enabled = True
Check5.Enabled = True
Check6.Enabled = True
Check7.Enabled = True
Else
Check1.Enabled = False
Check2.Enabled = False
Check3.Enabled = False
Check4.Enabled = False
Check5.Enabled = False
Check6.Enabled = False
Check7.Enabled = False
End If
End Sub
Public Sub Form_Load()
Command1(0).BackColor = RGB(250, 50, 0)
Command1(1).BackColor = RGB(50, 150, 0)
Command1(2).BackColor = RGB(150, 150, 150)
Command1(3).BackColor = RGB(50, 0, 250)
Command1(4).BackColor = RGB(250, 0, 250)
Command1(5).BackColor = RGB(0, 250, 250)
Command1(6).BackColor = RGB(100, 100, 250)
Dim graph(10)
For o = 1 To 7
If GraphLine(o) = True Then graph(o) = 1 Else graph(o) = 0
Next
Check1.Value = graph(1)
Check2.Value = graph(2)
Check3.Value = graph(3)
Check4.Value = graph(4)
Check5.Value = graph(5)
Check6.Value = graph(6)
Check7.Value = graph(7)
Check8.Value = Main.enableGraph
End Sub
Private Sub OK_Click()
GraphLine(1) = (Check1.Value = 1)
GraphLine(2) = (Check2.Value = 1)
GraphLine(3) = (Check3.Value = 1)
GraphLine(4) = (Check4.Value = 1)
GraphLine(5) = (Check5.Value = 1)
GraphLine(6) = (Check6.Value = 1)
GraphLine(7) = (Check7.Value = 1)
Main.enableGraph.Value = Check8.Value
Main.SaveQWASettings
Unload Me
End Sub