-
Notifications
You must be signed in to change notification settings - Fork 1
/
Test.frm
563 lines (528 loc) · 16.9 KB
/
Test.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
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
VERSION 5.00
Object = "*\AToolbar2.vbp"
Begin VB.Form frmToolbarDemonstration
BorderStyle = 3 'Fixed Dialog
Caption = "Toolbar Demonstration"
ClientHeight = 4650
ClientLeft = 1485
ClientTop = 1455
ClientWidth = 6870
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 310
ScaleMode = 3 'Pixel
ScaleWidth = 458
ShowInTaskbar = 0 'False
Begin VB.CheckBox chkBorderTop
Caption = "Border&Top"
Height = 285
Left = 2700
TabIndex = 19
Top = 630
Value = 1 'Checked
Width = 1965
End
Begin VB.CheckBox chkBorderLeft
Caption = "Border&Left"
Height = 285
Left = 2700
TabIndex = 18
Top = 945
Value = 1 'Checked
Width = 1965
End
Begin VB.CheckBox chkBorderRight
Caption = "Border&Right"
Height = 285
Left = 2700
TabIndex = 17
Top = 1260
Value = 1 'Checked
Width = 1965
End
Begin VB.CheckBox chkBorderBottom
Caption = "Border&Bottom"
Height = 285
Left = 2700
TabIndex = 16
Top = 1575
Value = 1 'Checked
Width = 1965
End
Begin VB.ComboBox cboBorderStyle
Height = 315
ItemData = "Test.frx":0000
Left = 630
List = "Test.frx":0016
Style = 2 'Dropdown List
TabIndex = 15
Top = 1530
Width = 1725
End
Begin VB.CheckBox chkDoubleTopBorder
Caption = "Dou&bleTopBorder"
Height = 285
Left = 4770
TabIndex = 14
Top = 630
Width = 1965
End
Begin VB.CheckBox chkDoubleBottomBorder
Caption = "DoubleBotto&mBorder"
Height = 285
Left = 4770
TabIndex = 13
Top = 945
Width = 1965
End
Begin VB.ComboBox cboAppearance
Height = 315
ItemData = "Test.frx":006F
Left = 630
List = "Test.frx":0079
Style = 2 'Dropdown List
TabIndex = 12
Top = 855
Width = 1725
End
Begin VB.ComboBox cboCaption
Height = 315
ItemData = "Test.frx":0097
Left = 630
List = "Test.frx":00A4
Style = 2 'Dropdown List
TabIndex = 11
Top = 2205
Width = 1725
End
Begin VB.CheckBox chkBold
Caption = "BoldOn&Checked"
Height = 285
Left = 2700
TabIndex = 10
Top = 2025
Value = 1 'Checked
Width = 1965
End
Begin VB.CheckBox chkShowSeparators
Caption = "Sho&wSeparators"
Height = 285
Left = 2700
TabIndex = 9
Top = 2340
Value = 1 'Checked
Width = 1965
End
Begin VB.TextBox txtField
Height = 285
Left = 630
TabIndex = 8
Top = 3555
Width = 600
End
Begin VB.ComboBox cboAlignment
Height = 315
ItemData = "Test.frx":00DD
Left = 630
List = "Test.frx":00ED
Style = 2 'Dropdown List
TabIndex = 7
Top = 2880
Width = 1725
End
Begin VB.CheckBox chkAutoSize
Caption = "AutoSi&ze"
Enabled = 0 'False
Height = 285
Left = 2700
TabIndex = 6
Top = 3105
Width = 1965
End
Begin VB.CheckBox chkDisabled
Caption = "DisabledText&3D"
Height = 285
Left = 2700
TabIndex = 5
Top = 3510
Width = 1965
End
Begin VB.CheckBox chkEnabled
Caption = "&Enabled"
Height = 285
Left = 2700
TabIndex = 4
Top = 3960
Value = 1 'Checked
Width = 1965
End
Begin VB.ComboBox cboStyle
Height = 315
ItemData = "Test.frx":0143
Left = 630
List = "Test.frx":014D
Style = 2 'Dropdown List
TabIndex = 3
Top = 4230
Width = 1725
End
Begin VB.CheckBox chkSolidChecked
Caption = "SolidChec&ked"
Height = 285
Left = 2700
TabIndex = 2
Top = 2655
Width = 1965
End
Begin VB.CheckBox chkShowToolTips
Caption = "Show&ToolTips"
Height = 240
Left = 4770
TabIndex = 1
Top = 2340
Value = 1 'Checked
Width = 1635
End
Begin VB.CheckBox chkSounds
Caption = "Play&Sounds"
Height = 240
Left = 4770
TabIndex = 0
Top = 2025
Value = 1 'Checked
Width = 1635
End
Begin AIFCmp1.asxToolbar tbrFontDemo
Height = 465
Left = 5355
Top = 4050
Width = 1410
_ExtentX = 2487
_ExtentY = 820
BeginProperty ToolTipFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ButtonGap = 6
BorderStyle = 3
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
ButtonCount = 3
SolidChecked = -1 'True
ShowSeparators = -1 'True
ButtonChecked1 = -1 'True
ButtonKey1 = "Left"
ButtonPicture1 = "Test.frx":016C
ButtonToolTipText1= "Left"
ButtonGroupID1 = 1
ButtonKey2 = "Center"
ButtonPicture2 = "Test.frx":04BE
ButtonToolTipText2= "Center"
ButtonGroupID2 = 1
ButtonKey3 = "Right"
ButtonPicture3 = "Test.frx":0810
ButtonToolTipText3= "Right"
ButtonGroupID3 = 1
End
Begin AIFCmp1.asxToolbar tbrDemo
Align = 1 'Align Top
Height = 510
Left = 0
Top = 0
Width = 6870
_ExtentX = 12118
_ExtentY = 900
FixedSize = 32
BeginProperty ToolTipFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
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
ButtonCount = 15
CaptionOptions = 2
ButtonCaption1 = "Back"
ButtonDescription1= "Display previous page from History"
ButtonPicture1 = "Test.frx":0B62
ButtonPictureOver1= "Test.frx":1064
ButtonToolTipText1= "Back"
ButtonCaption2 = "Next"
ButtonDescription2= "Display next page from history"
ButtonPicture2 = "Test.frx":1566
ButtonPictureOver2= "Test.frx":1A68
ButtonToolTipText2= "Next"
ButtonDescription3= "Stop loading a page"
ButtonPicture3 = "Test.frx":1F6A
ButtonPictureOver3= "Test.frx":246C
ButtonToolTipText3= "Stop"
ButtonCaption4 = "Refresh"
ButtonDescription4= "Refresh the current page"
ButtonPicture4 = "Test.frx":296E
ButtonPictureOver4= "Test.frx":2E70
ButtonToolTipText4= "Refresh"
ButtonAlwaysShowCaption4= -1 'True
ButtonDescription5= "Displays your home page"
ButtonPicture5 = "Test.frx":3372
ButtonPictureOver5= "Test.frx":3874
ButtonToolTipText5= "Home"
ButtonStyle6 = 2
ButtonDescription7= "Displays a search engine"
ButtonKey7 = "Search"
ButtonPicture7 = "Test.frx":3D76
ButtonPictureOver7= "Test.frx":4278
ButtonToolTipText7= "Search"
ButtonDescription8= "Displays your favourites menu"
ButtonKey8 = "Fav"
ButtonPicture8 = "Test.frx":477A
ButtonPictureOver8= "Test.frx":4C7C
ButtonToolTipText8= "Favourites"
ButtonDescription9= "Displays your history list"
ButtonKey9 = "History"
ButtonPicture9 = "Test.frx":517E
ButtonPictureOver9= "Test.frx":5680
ButtonToolTipText9= "History"
ButtonStyle10 = 2
ButtonDescription11= "Allows you to set options"
ButtonPicture11 = "Test.frx":5B82
ButtonPictureOver11= "Test.frx":6084
ButtonPictureDown11= "Test.frx":6586
ButtonToolTipText11= "Options"
ButtonStyle12 = 2
ButtonDescription13= "Displays the page full screen"
ButtonPicture13 = "Test.frx":6A88
ButtonPictureOver13= "Test.frx":6F8A
ButtonToolTipText13= "Full Screen"
ButtonDescription14= "Allows the page to be edited"
ButtonPicture14 = "Test.frx":748C
ButtonPictureOver14= "Test.frx":79DE
ButtonToolTipText14= "Edit"
ButtonStyle15 = 2
End
Begin AIFCmp1.asxToolbar tbrHeader
Align = 3 'Align Left
Height = 4140
Left = 0
Top = 510
Width = 510
_ExtentX = 900
_ExtentY = 7303
BeginProperty ToolTipFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
TextColor = 12582912
TextDisabledColor= 8421504
ButtonGap = 6
BorderStyle = 0
BackColor = 255
HighlightColor = 12632319
ShadowColor = 192
HighlightDarkColor= 8421631
ShadowDarkColor = 128
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
ButtonCount = 3
ShowSeparators = -1 'True
ButtonCaption1 = "Code"
ButtonKey1 = "Code"
ButtonPicture1 = "Test.frx":7F30
ButtonToolTipText1= "Display Code Module"
ButtonGroupID1 = 1
ButtonCaption2 = "Notes"
ButtonKey2 = "Notes"
ButtonPicture2 = "Test.frx":8282
ButtonToolTipText2= "Display Code Description"
ButtonGroupID2 = 1
ButtonKey3 = "Example"
ButtonPicture3 = "Test.frx":85D4
ButtonToolTipText3= "Display examples on using the code"
ButtonGroupID3 = 1
End
Begin VB.Label lblHdr
AutoSize = -1 'True
Caption = "Border&Style:"
Height = 195
Index = 0
Left = 630
TabIndex = 25
Top = 1305
Width = 855
End
Begin VB.Label lblHdr
AutoSize = -1 'True
Caption = "&Appearance:"
Height = 195
Index = 1
Left = 630
TabIndex = 24
Top = 630
Width = 915
End
Begin VB.Label lblHdr
AutoSize = -1 'True
Caption = "Caption&Options:"
Height = 195
Index = 2
Left = 630
TabIndex = 23
Top = 1980
Width = 1125
End
Begin VB.Label lblHdr
AutoSize = -1 'True
Caption = "Button&Gap:"
Height = 195
Index = 3
Left = 630
TabIndex = 22
Top = 3330
Width = 810
End
Begin VB.Label lblHdr
AutoSize = -1 'True
Caption = "CaptionAlignm&ent:"
Height = 195
Index = 4
Left = 630
TabIndex = 21
Top = 2655
Width = 1275
End
Begin VB.Label lblHdr
AutoSize = -1 'True
Caption = "St&yle:"
Height = 195
Index = 5
Left = 630
TabIndex = 20
Top = 4005
Width = 390
End
End
Attribute VB_Name = "frmToolbarDemonstration"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
DefInt A-Z
Private Sub cboAlignment_Click()
tbrDemo.CaptionAlignment = cboAlignment.ListIndex
End Sub
Private Sub cboAppearance_Click()
tbrDemo.Appearance = cboAppearance.ListIndex
tbrFontDemo.Appearance = cboAppearance.ListIndex
tbrHeader.Appearance = cboAppearance.ListIndex
End Sub
Private Sub cboBorderStyle_Click()
tbrDemo.BorderStyle = cboBorderStyle.ListIndex
End Sub
Private Sub cboCaption_Click()
tbrDemo.CaptionOptions = cboCaption.ListIndex
End Sub
Private Sub cboStyle_Click()
tbrDemo.Style = cboStyle.ListIndex
End Sub
Private Sub chkBold_Click()
tbrHeader.BoldOnChecked = chkBold
End Sub
Private Sub chkBorderBottom_Click()
tbrDemo.Borderbottom = chkBorderBottom
End Sub
Private Sub chkBorderLeft_Click()
tbrDemo.Borderleft = chkBorderLeft
End Sub
Private Sub chkBorderRight_Click()
tbrDemo.Borderright = chkBorderRight
End Sub
Private Sub chkBorderTop_Click()
tbrDemo.BorderTop = chkBorderTop
End Sub
Private Sub chkDisabled_Click()
tbrDemo.DisabledText3D = chkDisabled
End Sub
Private Sub chkDoubleBottomBorder_Click()
tbrDemo.DoubleBottomBorder = chkDoubleBottomBorder
End Sub
Private Sub chkDoubleTopBorder_Click()
tbrDemo.DoubleTopBorder = chkDoubleTopBorder
End Sub
Private Sub chkEnabled_Click()
tbrDemo.Enabled = chkEnabled
tbrFontDemo.Enabled = chkEnabled
tbrHeader.Enabled = chkEnabled
End Sub
Private Sub chkShowSeparators_Click()
tbrHeader.ShowSeparators = chkShowSeparators
End Sub
Private Sub chkShowToolTips_Click()
tbrDemo.ShowToolTips = chkShowToolTips
End Sub
Private Sub chkSolidChecked_Click()
tbrHeader.SolidChecked = chkSolidChecked
End Sub
Private Sub chkSounds_Click()
tbrDemo.PlaySounds = chkSounds
End Sub
Private Sub Form_Load()
cboAppearance.ListIndex = ifcaStandard
cboBorderStyle.ListIndex = tbbsRaised
cboCaption.ListIndex = iftoSelectedLabels
cboAlignment.ListIndex = ifcaCaptionOnRight
cboStyle.ListIndex = tbtsVariable
txtField = tbrDemo.ButtonGap
End Sub
Private Sub tbrDemo_ButtonClick(ByVal ButtonIndex As Integer, ByVal ButtonKey As String)
If ButtonKey = "Search" Or ButtonKey = "Fav" Or ButtonKey = "History" Then
tbrDemo.ButtonChecked(ButtonIndex) = Not tbrDemo.ButtonChecked(ButtonIndex)
End If
End Sub
Private Sub txtField_Change()
tbrDemo.ButtonGap = Val(txtField)
End Sub