-
Notifications
You must be signed in to change notification settings - Fork 32
/
Options.frm
1692 lines (1508 loc) · 55.4 KB
/
Options.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
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
VERSION 5.00
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "Richtx32.ocx"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.1#0"; "MSCOMCTL.OCX"
Begin VB.Form frmOptions
BorderStyle = 4 'Fixed ToolWindow
Caption = "VBIDEUtils Options"
ClientHeight = 5490
ClientLeft = 2175
ClientTop = 1890
ClientWidth = 9120
ControlBox = 0 'False
Icon = "Options.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5490
ScaleWidth = 9120
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.Frame frametab
Caption = "Indenting Options"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 4095
Index = 2
Left = 4320
TabIndex = 31
Top = 3120
Visible = 0 'False
Width = 8655
Begin VB.VScrollBar vSpace
Height = 320
Left = 1680
Max = 0
Min = 9
TabIndex = 11
Top = 3670
Width = 255
End
Begin VB.CheckBox cbIndentDim
Caption = "Align all dim/global variables..."
ForeColor = &H00000080&
Height = 255
Left = 5640
TabIndex = 14
ToolTipText = "Align all variable on the 'As'"
Top = 3720
Value = 1 'Checked
Width = 2775
End
Begin VB.TextBox tbSpaceNum
Height = 285
Left = 1440
MaxLength = 1
TabIndex = 9
Text = "3"
ToolTipText = "Set how much space for 1 tab.... 3 is good :)"
Top = 3690
Width = 255
End
Begin RichTextLib.RichTextBox rtfColor
Height = 495
Left = 2040
TabIndex = 36
Top = 3240
Visible = 0 'False
Width = 495
_ExtentX = 873
_ExtentY = 873
_Version = 393217
TextRTF = $"Options.frx":0442
End
Begin RichTextLib.RichTextBox rtfCodeExample
Height = 2895
Left = 120
TabIndex = 35
ToolTipText = "Sample of indenting"
Top = 240
Width = 8415
_ExtentX = 14843
_ExtentY = 5106
_Version = 393217
ReadOnly = -1 'True
ScrollBars = 3
TextRTF = $"Options.frx":04C4
BeginProperty Font {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
End
Begin VB.CheckBox cbIndentCmt
Caption = "Indent comments to align with code"
ForeColor = &H00000080&
Height = 255
Left = 2640
TabIndex = 12
ToolTipText = "Align all the comments to the code..."
Top = 3720
Value = 1 'Checked
Width = 2895
End
Begin VB.CheckBox cbIndentCase
Caption = "Indent within ""Select Case"" lines"
ForeColor = &H00000080&
Height = 255
Left = 5640
TabIndex = 13
ToolTipText = "Indent all the code within a Select Case"
Top = 3360
Value = 1 'Checked
Width = 2775
End
Begin VB.OptionButton obUseTabs
Caption = "Tabs"
ForeColor = &H00000080&
Height = 255
Left = 600
TabIndex = 7
ToolTipText = "Do you prefer to use tabs?"
Top = 3360
Width = 1035
End
Begin VB.OptionButton obUseSpaces
Caption = "Spaces:"
ForeColor = &H00000080&
Height = 255
Left = 600
TabIndex = 8
ToolTipText = "Indent using spaces"
Top = 3720
Value = -1 'True
Width = 1035
End
Begin VB.CheckBox cbIndentProc
Caption = "Indent everything within a procedure"
ForeColor = &H00000080&
Height = 255
Left = 2640
TabIndex = 10
ToolTipText = "Indent all within a procedure/function"
Top = 3360
Value = 1 'Checked
Width = 2895
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "Use:"
ForeColor = &H00000000&
Height = 195
Left = 240
TabIndex = 32
Top = 3360
Width = 330
End
End
Begin VB.Frame frametab
Caption = "Comment template"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 4095
Index = 3
Left = 2760
TabIndex = 33
Top = 3120
Visible = 0 'False
Width = 8655
Begin VB.CommandButton cmdDeleteTemplate
Caption = "&Delete"
Height = 315
Left = 7560
TabIndex = 23
ToolTipText = "Delete a template"
Top = 720
Width = 855
End
Begin VB.CommandButton cmdSaveTemplate
Caption = "&Save"
Height = 315
Left = 6720
TabIndex = 22
ToolTipText = "Save a template"
Top = 720
Width = 855
End
Begin VB.TextBox tbCommentString
Height = 315
Left = 2280
MaxLength = 1
ScrollBars = 2 'Vertical
TabIndex = 15
Text = "*"
ToolTipText = "Set the string to be used in the comments"
Top = 240
Width = 375
End
Begin VB.ComboBox cbTemplate
Height = 315
Left = 1440
Sorted = -1 'True
TabIndex = 16
ToolTipText = "Do you want to load/save a template? Set the name here"
Top = 680
Width = 5055
End
Begin VB.CommandButton cmdRemoveAll
Caption = "<<"
Height = 255
Left = 3720
TabIndex = 21
ToolTipText = "Remve all fields from the template"
Top = 2640
Width = 975
End
Begin VB.CommandButton cmdRemove
Caption = "<"
Height = 255
Left = 3720
TabIndex = 20
ToolTipText = "Remove a field from the template"
Top = 2160
Width = 975
End
Begin VB.CommandButton cmdAdd
Caption = ">"
Height = 255
Left = 3720
TabIndex = 18
ToolTipText = "Add a field in the template"
Top = 1680
Width = 975
End
Begin VB.ListBox lstDestination
Height = 2790
Left = 5160
TabIndex = 19
ToolTipText = "Fields used in the template"
Top = 1080
Width = 3255
End
Begin VB.ListBox lstSource
Height = 2790
Left = 120
TabIndex = 17
ToolTipText = "Fields not used in the template"
Top = 1080
Width = 3255
End
Begin VB.Label Label12
Caption = "String used in the comments"
ForeColor = &H00000080&
Height = 255
Left = 120
TabIndex = 42
Top = 285
Width = 2055
End
Begin VB.Label Label4
Caption = "Template Name"
ForeColor = &H00000080&
Height = 255
Left = 120
TabIndex = 34
Top = 720
Width = 1215
End
End
Begin VB.Frame frametab
Caption = "User Comment"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 4095
Index = 4
Left = 7560
TabIndex = 40
Top = 0
Visible = 0 'False
Width = 8655
Begin VB.TextBox tbUserComment
Height = 3735
Left = 120
MultiLine = -1 'True
TabIndex = 41
ToolTipText = "Set the user comment"
Top = 240
Width = 8415
End
End
Begin VB.Frame frametab
Caption = "Error handler"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 4095
Index = 5
Left = -1800
TabIndex = 38
Top = 3360
Visible = 0 'False
Width = 8655
Begin VB.Frame Frame1
Caption = "Add the following function"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 615
Left = 120
TabIndex = 49
Top = 3360
Width = 8415
Begin VB.CommandButton cmdAddResumeExit
Caption = "Resume Exit"
Height = 255
Left = 5880
TabIndex = 47
ToolTipText = "Add a resume exit in the error handler"
Top = 240
Width = 1815
End
Begin VB.CommandButton cmdAddProjectName
Caption = "Project Name"
Height = 255
Left = 3960
TabIndex = 46
ToolTipText = "Add the project name in the error handler"
Top = 240
Width = 1815
End
Begin VB.CommandButton clmdAddModuleName
Caption = "Module Name"
Height = 255
Left = 2040
TabIndex = 45
ToolTipText = "Add the module name in the error handler"
Top = 240
Width = 1815
End
Begin VB.CommandButton cmdAddProcedureName
Caption = "Procedure Name"
Height = 255
Left = 120
TabIndex = 44
ToolTipText = "Add the procedure name in the error handler"
Top = 240
Width = 1815
End
End
Begin VB.TextBox tbCustomizeErrorHandler
Height = 2895
Left = 120
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 43
Text = "Options.frx":0546
ToolTipText = "Set the standard error handler"
Top = 480
Width = 8415
End
Begin VB.Label Label13
Caption = "Customize Error Handler"
ForeColor = &H00000080&
Height = 255
Left = 120
TabIndex = 48
Top = 240
Width = 3015
End
End
Begin VB.Frame frametab
Caption = "General configuration"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 4095
Index = 1
Left = 240
TabIndex = 26
Top = 480
Width = 8655
Begin VB.TextBox tbInline
Height = 315
Left = 1680
MaxLength = 35
TabIndex = 5
ToolTipText = "Set a particular inline comment..."
Top = 2160
Width = 5655
End
Begin VB.TextBox tbDevelopper
Height = 315
Left = 1680
MaxLength = 80
TabIndex = 1
ToolTipText = "Set the developer name used in the comments"
Top = 240
Width = 5655
End
Begin VB.TextBox tbWebSite
Height = 315
Left = 1680
MaxLength = 100
TabIndex = 2
ToolTipText = "Set the web site name used in the comments"
Top = 720
Width = 5655
End
Begin VB.TextBox tbEMail
Height = 315
Left = 1680
MaxLength = 50
TabIndex = 3
ToolTipText = "Set the e-mail name used in the comments"
Top = 1200
Width = 5655
End
Begin VB.TextBox tbTelephone
Height = 315
Left = 1680
MaxLength = 35
TabIndex = 4
ToolTipText = "Set the phone number name used in the comments"
Top = 1680
Width = 1695
End
Begin VB.TextBox tbComment
Height = 975
Left = 1680
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 6
ToolTipText = "Set your prefered comment"
Top = 2640
Visible = 0 'False
Width = 5655
End
Begin VB.Label Label11
Caption = "Web site"
ForeColor = &H00000080&
Height = 255
Left = 120
TabIndex = 39
Top = 765
Width = 1455
End
Begin VB.Label Label9
Caption = "Inline comment"
ForeColor = &H00000080&
Height = 255
Left = 120
TabIndex = 37
Top = 2205
Width = 1455
End
Begin VB.Label Label2
Caption = "Prefered comment"
ForeColor = &H00000080&
Height = 375
Left = 120
TabIndex = 30
Top = 2640
Visible = 0 'False
Width = 1455
End
Begin VB.Label Label3
Caption = "Developer name"
ForeColor = &H00000080&
Height = 255
Left = 120
TabIndex = 29
Top = 285
Width = 1455
End
Begin VB.Label Label6
Caption = "E-Mail"
ForeColor = &H00000080&
Height = 255
Left = 120
TabIndex = 28
Top = 1245
Width = 1455
End
Begin VB.Label Label7
Caption = "Telephone"
ForeColor = &H00000080&
Height = 255
Left = 120
TabIndex = 27
Top = 1725
Width = 1455
End
End
Begin VB.CommandButton cmdOk
Caption = "&Ok"
Height = 615
Left = 7080
Picture = "Options.frx":054C
Style = 1 'Graphical
TabIndex = 24
ToolTipText = "Ok, I accept all the options"
Top = 4800
Width = 855
End
Begin MSComctlLib.TabStrip tabstrip
Height = 4575
Left = 120
TabIndex = 0
Top = 120
Width = 8895
_ExtentX = 15690
_ExtentY = 8070
_Version = 393216
BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628}
NumTabs = 5
BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628}
Caption = "&General Options"
Key = "GENERAL"
Object.ToolTipText = "General options"
ImageVarType = 2
EndProperty
BeginProperty Tab2 {1EFB659A-857C-11D1-B16A-00C0F0283628}
Caption = "&Indenting Options"
Key = "INDENTING"
Object.ToolTipText = "Indenting options"
ImageVarType = 2
EndProperty
BeginProperty Tab3 {1EFB659A-857C-11D1-B16A-00C0F0283628}
Caption = "&Comment Template"
Key = "COMMENT"
Object.ToolTipText = "Comment template"
ImageVarType = 2
EndProperty
BeginProperty Tab4 {1EFB659A-857C-11D1-B16A-00C0F0283628}
Caption = "&User Comment"
Key = "USERCOMMENT"
Object.ToolTipText = "Use user comment"
ImageVarType = 2
EndProperty
BeginProperty Tab5 {1EFB659A-857C-11D1-B16A-00C0F0283628}
Caption = "&Error handler"
Key = "ERROR"
Object.ToolTipText = "Error handler"
ImageVarType = 2
EndProperty
EndProperty
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "E&xit"
Height = 615
Left = 8040
Picture = "Options.frx":0696
Style = 1 'Graphical
TabIndex = 25
ToolTipText = "Oops, forget it..."
Top = 4800
Width = 855
End
End
Attribute VB_Name = "frmOptions"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 2/10/98
' * Time : 14:36
' * Module Name : frmOptions
' * Module Filename : Options.frm
' **********************************************************************
' * Comments : Set the options for the VBIDEUtils addins
' *
' *
' **********************************************************************
Option Explicit
Private clsTooltips As New class_Tooltips
' *** Dimension an array to hold the code for the example procedure
Dim asCodeLines(1 To 16) As String
Private mnCurFrame As Integer
Private Sub clmdAddModuleName_Click()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 04/11/1999
' * Time : 16:51
' * Module Name : frmOptions
' * Module Filename : Options.frm
' * Procedure Name : clmdAddModuleName_Click
' * Parameters :
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
tbCustomizeErrorHandler.SetFocus
SendKeys "{{}ModuleName{}}"
End Sub
Private Sub cmdAddProcedureName_Click()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 04/11/1999
' * Time : 16:51
' * Module Name : frmOptions
' * Module Filename : Options.frm
' * Procedure Name : cmdAddProcedureName_Click
' * Parameters :
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
tbCustomizeErrorHandler.SetFocus
SendKeys "{{}ProcedureName{}}"
End Sub
Private Sub cmdAddProjectName_Click()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 04/11/1999
' * Time : 16:51
' * Module Name : frmOptions
' * Module Filename : Options.frm
' * Procedure Name : cmdAddProjectName_Click
' * Parameters :
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
tbCustomizeErrorHandler.SetFocus
SendKeys "{{}ProjectName{}}"
End Sub
Private Sub cmdAddResumeExit_Click()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 04/11/1999
' * Time : 16:51
' * Module Name : frmOptions
' * Module Filename : Options.frm
' * Procedure Name : cmdAddResumeExit_Click
' * Parameters :
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
tbCustomizeErrorHandler.SetFocus
SendKeys "Resume EXIT_{{}ProcedureName{}}:"
End Sub
Private Sub Form_Activate()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 04/11/1999
' * Time : 16:51
' * Module Name : frmOptions
' * Module Filename : Options.frm
' * Procedure Name : Form_Activate
' * Parameters :
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
On Error Resume Next
' *** Define the example procedure code lines
asCodeLines(1) = "' *** Example Procedure"
asCodeLines(2) = "Public Sub SetRedraw(frm As Form, bRedraw As Boolean)"
asCodeLines(3) = ""
asCodeLines(4) = "' *** VBIDEUtils"
asCodeLines(5) = "MsgBox ""Copyright © 2001 Me"""
asCodeLines(6) = ""
asCodeLines(7) = "If bDoYouKnowPrintPreviewOCX = False Then"
asCodeLines(8) = "' *** Visit http://www.ppreview.net"
asCodeLines(9) = "Select Case X"
asCodeLines(10) = "Case 1"
asCodeLines(11) = "' *** If you have any comments or suggestions,"
asCodeLines(12) = "MsgBox ""Contact removed"""
asCodeLines(13) = "End Select"
asCodeLines(14) = "End If"
asCodeLines(15) = ""
asCodeLines(16) = "End Sub"
' *** Read the options from the registry
tbSpaceNum.Text = GetSetting(gsREG_APP, "Indent", "IndentSpaces", "3")
obUseTabs.Value = (GetSetting(gsREG_APP, "Indent", "UseTabs", "N") = "Y")
cbIndentProc.Value = IIf(GetSetting(gsREG_APP, "Indent", "IndentProc", "N") = "Y", 1, 0)
cbIndentCmt.Value = IIf(GetSetting(gsREG_APP, "Indent", "IndentCmt", "Y") = "Y", 1, 0)
cbIndentCase.Value = IIf(GetSetting(gsREG_APP, "Indent", "IndentCase", "N") = "Y", 1, 0)
cbIndentDim.Value = IIf(GetSetting(gsREG_APP, "Indent", "IndentVariable", "N") = "Y", 1, 0)
' *** Update the code box
UpdateCodeListBox
End Sub
Private Sub Form_Load()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 04/11/1999
' * Time : 16:51
' * Module Name : frmOptions
' * Module Filename : Options.frm
' * Procedure Name : Form_Load
' * Parameters :
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
' *** Set the textbox
On Error Resume Next
Call InitTooltips
mnCurFrame = -1
tbDevelopper.Text = gsDevelopper
tbWebSite.Text = gsWebSite
tbEMail.Text = gsEmail
tbTelephone.Text = gsTelephone
tbInline.Text = gsInline
tbComment.Text = gsComment
tbUserComment.Text = gsUserComment
tbCommentString.Text = gsCommentString
tbCustomizeErrorHandler.Text = gsErrorHandler
' *** Fill the Procedure Header possibility
Fill_ProcedureHeader
' *** Fill the combo with template
Fill_ComboTemplate
vSpace.Value = tbSpaceNum.Text
Me.Show
DoEvents
End Sub
Private Sub obUseTabs_Click()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 2/10/98
' * Time : 14:12
' * Module Name : frmOptions
' * Module Filename : Options.frm
' * Procedure Name : obUseTabs_Click
' * Parameters :
' **********************************************************************
' * Comments : Handles clicking on the Use Tabs option button
' *
' *
' **********************************************************************
UpdateCodeListBox
End Sub
Private Sub obUseSpaces_Click()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 2/10/98
' * Time : 14:13
' * Module Name : frmOptions
' * Module Filename : Options.frm
' * Procedure Name : obUseSpaces_Click
' * Parameters :
' **********************************************************************
' * Comments : Handles clicking on the Use Spaces option button
' *
' *
' **********************************************************************
' *** Default to use 3 spaces if nothing there already
If tbSpaceNum = "" Then tbSpaceNum = "3"
UpdateCodeListBox
End Sub
Private Sub tabstrip_Click()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 04/11/1999
' * Time : 16:51
' * Module Name : frmOptions
' * Module Filename : Options.frm
' * Procedure Name : tabstrip_Click
' * Parameters :
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
On Error Resume Next
If TabStrip.SelectedItem.index = mnCurFrame Then Exit Sub ' No need to change frame.
' *** Otherwise, hide old frame, show new.
frametab(TabStrip.SelectedItem.index).left = 240
frametab(TabStrip.SelectedItem.index).top = 480
frametab(TabStrip.SelectedItem.index).Visible = True
frametab(mnCurFrame).Visible = False
frametab(TabStrip.SelectedItem.index).ZOrder
' *** Set mnCurFrame to new value.
mnCurFrame = TabStrip.SelectedItem.index
End Sub
Private Sub tbSpaceNum_Change()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 2/10/98
' * Time : 14:13
' * Module Name : frmOptions
' * Module Filename : Options.frm
' * Procedure Name : tbSpaceNum_Change
' * Parameters :
' **********************************************************************
' * Comments : Handles changes in the Space number edit box, validating the entry
' *
' *
' **********************************************************************
On Error Resume Next
'Set the option button to use spaces
obUseSpaces = True
'Validate the item in the edit box
If tbSpaceNum = "" Then
obUseTabs = True
ElseIf Not IsNumeric(tbSpaceNum) Then
tbSpaceNum = ""
obUseTabs = True
Else
tbSpaceNum = CStr(Abs(Int(CDbl(tbSpaceNum))))
End If
UpdateCodeListBox
End Sub
Private Sub cbIndentProc_Click()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 2/10/98
' * Time : 14:13
' * Module Name : frmOptions
' * Module Filename : Options.frm
' * Procedure Name : cbIndentProc_Click
' * Parameters :
' **********************************************************************
' * Comments : Handles checking the "Indent everything within procedure" check box
' *
' *
' **********************************************************************
UpdateCodeListBox
End Sub
Private Sub cbIndentCmt_Click()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 2/10/98
' * Time : 14:14
' * Module Name : frmOptions
' * Module Filename : Options.frm
' * Procedure Name : cbIndentCmt_Click
' * Parameters :
' **********************************************************************
' * Comments : Handles checking the "Indent comments to align with code" check box
' *
' *
' **********************************************************************
UpdateCodeListBox
End Sub
Private Sub cbIndentCase_Click()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 2/10/98
' * Time : 14:14
' * Module Name : frmOptions
' * Module Filename : Options.frm
' * Procedure Name : cbIndentCase_Click
' * Parameters :
' **********************************************************************
' * Comments : Handles checking the "Indent within Select Case blocks" check box
' *
' *
' **********************************************************************
UpdateCodeListBox
End Sub
Private Sub cmdOK_Click()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed