home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 5_2007-2008.ISO / data / Zips / VB6_Viewer20275910292006.psc / Options.frm < prev    next >
Text File  |  2006-11-29  |  26KB  |  772 lines

  1. VERSION 5.00
  2. Begin VB.Form frmOptions 
  3.    BackColor       =   &H00685758&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "VB Editor Options"
  6.    ClientHeight    =   8415
  7.    ClientLeft      =   4065
  8.    ClientTop       =   1980
  9.    ClientWidth     =   5190
  10.    BeginProperty Font 
  11.       Name            =   "Euclid"
  12.       Size            =   12
  13.       Charset         =   0
  14.       Weight          =   400
  15.       Underline       =   0   'False
  16.       Italic          =   0   'False
  17.       Strikethrough   =   0   'False
  18.    EndProperty
  19.    LinkTopic       =   "Form1"
  20.    MaxButton       =   0   'False
  21.    MinButton       =   0   'False
  22.    ScaleHeight     =   8415
  23.    ScaleWidth      =   5190
  24.    Begin VB.CommandButton cmdExit 
  25.       Caption         =   "Exit"
  26.       BeginProperty Font 
  27.          Name            =   "Times New Roman"
  28.          Size            =   12
  29.          Charset         =   0
  30.          Weight          =   400
  31.          Underline       =   0   'False
  32.          Italic          =   0   'False
  33.          Strikethrough   =   0   'False
  34.       EndProperty
  35.       Height          =   330
  36.       Left            =   4020
  37.       TabIndex        =   36
  38.       Top             =   45
  39.       Width           =   1005
  40.    End
  41.    Begin VB.Frame Frame4 
  42.       Caption         =   "Text Colours"
  43.       Height          =   4875
  44.       Left            =   180
  45.       TabIndex        =   13
  46.       Top             =   3300
  47.       Width           =   4875
  48.       Begin VB.Label LbCol 
  49.          BackColor       =   &H80000005&
  50.          BorderStyle     =   1  'Fixed Single
  51.          Caption         =   "For Each Obj"
  52.          BeginProperty Font 
  53.             Name            =   "Euclid"
  54.             Size            =   9.75
  55.             Charset         =   0
  56.             Weight          =   700
  57.             Underline       =   0   'False
  58.             Italic          =   0   'False
  59.             Strikethrough   =   0   'False
  60.          EndProperty
  61.          ForeColor       =   &H000000C0&
  62.          Height          =   315
  63.          Index           =   7
  64.          Left            =   2910
  65.          TabIndex        =   41
  66.          Top             =   2610
  67.          Width           =   1695
  68.       End
  69.       Begin VB.Label Label2 
  70.          Alignment       =   1  'Right Justify
  71.          Caption         =   "Edited Lines"
  72.          Height          =   345
  73.          Index           =   7
  74.          Left            =   60
  75.          TabIndex        =   40
  76.          Top             =   2550
  77.          Width           =   2325
  78.       End
  79.       Begin VB.Label LbColPal 
  80.          Alignment       =   2  'Center
  81.          BackColor       =   &H00FFFFFF&
  82.          BorderStyle     =   1  'Fixed Single
  83.          Caption         =   "Aa"
  84.          BeginProperty Font 
  85.             Name            =   "Euclid"
  86.             Size            =   12
  87.             Charset         =   0
  88.             Weight          =   700
  89.             Underline       =   0   'False
  90.             Italic          =   0   'False
  91.             Strikethrough   =   0   'False
  92.          EndProperty
  93.          ForeColor       =   &H0000C000&
  94.          Height          =   375
  95.          Index           =   7
  96.          Left            =   3990
  97.          TabIndex        =   39
  98.          Top             =   3990
  99.          Width           =   525
  100.       End
  101.       Begin VB.Label LbColPal 
  102.          Alignment       =   2  'Center
  103.          BackColor       =   &H00FFFFFF&
  104.          BorderStyle     =   1  'Fixed Single
  105.          Caption         =   "Aa"
  106.          BeginProperty Font 
  107.             Name            =   "Euclid"
  108.             Size            =   12
  109.             Charset         =   0
  110.             Weight          =   700
  111.             Underline       =   0   'False
  112.             Italic          =   0   'False
  113.             Strikethrough   =   0   'False
  114.          EndProperty
  115.          ForeColor       =   &H00C0C000&
  116.          Height          =   375
  117.          Index           =   6
  118.          Left            =   3465
  119.          TabIndex        =   38
  120.          Top             =   3990
  121.          Width           =   525
  122.       End
  123.       Begin VB.Label Label3 
  124.          Alignment       =   2  'Center
  125.          BackColor       =   &H00C0FFFF&
  126.          BorderStyle     =   1  'Fixed Single
  127.          Caption         =   "Click on the item you wish to change the color of in the list above. Then select the color you want from the strip below "
  128.          BeginProperty Font 
  129.             Name            =   "Times New Roman"
  130.             Size            =   11.25
  131.             Charset         =   0
  132.             Weight          =   400
  133.             Underline       =   0   'False
  134.             Italic          =   0   'False
  135.             Strikethrough   =   0   'False
  136.          EndProperty
  137.          Height          =   825
  138.          Left            =   285
  139.          TabIndex        =   34
  140.          Top             =   3030
  141.          Width           =   4305
  142.       End
  143.       Begin VB.Label LbColPal 
  144.          Alignment       =   2  'Center
  145.          BackColor       =   &H00FFFFFF&
  146.          BorderStyle     =   1  'Fixed Single
  147.          Caption         =   "Aa"
  148.          BeginProperty Font 
  149.             Name            =   "Euclid"
  150.             Size            =   12
  151.             Charset         =   0
  152.             Weight          =   700
  153.             Underline       =   0   'False
  154.             Italic          =   0   'False
  155.             Strikethrough   =   0   'False
  156.          EndProperty
  157.          ForeColor       =   &H00808080&
  158.          Height          =   375
  159.          Index           =   5
  160.          Left            =   2925
  161.          TabIndex        =   33
  162.          Top             =   3990
  163.          Width           =   525
  164.       End
  165.       Begin VB.Label LbColPal 
  166.          Alignment       =   2  'Center
  167.          BackColor       =   &H00FFFFFF&
  168.          BorderStyle     =   1  'Fixed Single
  169.          Caption         =   "Aa"
  170.          BeginProperty Font 
  171.             Name            =   "Euclid"
  172.             Size            =   12
  173.             Charset         =   0
  174.             Weight          =   700
  175.             Underline       =   0   'False
  176.             Italic          =   0   'False
  177.             Strikethrough   =   0   'False
  178.          EndProperty
  179.          ForeColor       =   &H00800080&
  180.          Height          =   375
  181.          Index           =   4
  182.          Left            =   2400
  183.          TabIndex        =   32
  184.          Top             =   3990
  185.          Width           =   525
  186.       End
  187.       Begin VB.Label LbColPal 
  188.          Alignment       =   2  'Center
  189.          BackColor       =   &H00FFFFFF&
  190.          BorderStyle     =   1  'Fixed Single
  191.          Caption         =   "Aa"
  192.          BeginProperty Font 
  193.             Name            =   "Euclid"
  194.             Size            =   12
  195.             Charset         =   0
  196.             Weight          =   700
  197.             Underline       =   0   'False
  198.             Italic          =   0   'False
  199.             Strikethrough   =   0   'False
  200.          EndProperty
  201.          ForeColor       =   &H000000C0&
  202.          Height          =   375
  203.          Index           =   3
  204.          Left            =   1860
  205.          TabIndex        =   31
  206.          Top             =   3990
  207.          Width           =   525
  208.       End
  209.       Begin VB.Label LbColPal 
  210.          Alignment       =   2  'Center
  211.          BackColor       =   &H00FFFFFF&
  212.          BorderStyle     =   1  'Fixed Single
  213.          Caption         =   "Aa"
  214.          BeginProperty Font 
  215.             Name            =   "Euclid"
  216.             Size            =   12
  217.             Charset         =   0
  218.             Weight          =   700
  219.             Underline       =   0   'False
  220.             Italic          =   0   'False
  221.             Strikethrough   =   0   'False
  222.          EndProperty
  223.          ForeColor       =   &H00008000&
  224.          Height          =   375
  225.          Index           =   2
  226.          Left            =   1335
  227.          TabIndex        =   30
  228.          Top             =   3990
  229.          Width           =   525
  230.       End
  231.       Begin VB.Label LbColPal 
  232.          Alignment       =   2  'Center
  233.          BackColor       =   &H00FFFFFF&
  234.          BorderStyle     =   1  'Fixed Single
  235.          Caption         =   "Aa"
  236.          BeginProperty Font 
  237.             Name            =   "Euclid"
  238.             Size            =   12
  239.             Charset         =   0
  240.             Weight          =   700
  241.             Underline       =   0   'False
  242.             Italic          =   0   'False
  243.             Strikethrough   =   0   'False
  244.          EndProperty
  245.          ForeColor       =   &H00C00000&
  246.          Height          =   375
  247.          Index           =   1
  248.          Left            =   795
  249.          TabIndex        =   29
  250.          Top             =   3990
  251.          Width           =   525
  252.       End
  253.       Begin VB.Label LbColPal 
  254.          Alignment       =   2  'Center
  255.          BackColor       =   &H00FFFFFF&
  256.          BorderStyle     =   1  'Fixed Single
  257.          Caption         =   "Aa"
  258.          BeginProperty Font 
  259.             Name            =   "Euclid"
  260.             Size            =   12
  261.             Charset         =   0
  262.             Weight          =   700
  263.             Underline       =   0   'False
  264.             Italic          =   0   'False
  265.             Strikethrough   =   0   'False
  266.          EndProperty
  267.          Height          =   375
  268.          Index           =   0
  269.          Left            =   270
  270.          TabIndex        =   28
  271.          Top             =   3990
  272.          Width           =   525
  273.       End
  274.       Begin VB.Label LbCol 
  275.          BackColor       =   &H80000005&
  276.          BorderStyle     =   1  'Fixed Single
  277.          Caption         =   "For Each Obj"
  278.          BeginProperty Font 
  279.             Name            =   "Euclid"
  280.             Size            =   9.75
  281.             Charset         =   0
  282.             Weight          =   700
  283.             Underline       =   0   'False
  284.             Italic          =   0   'False
  285.             Strikethrough   =   0   'False
  286.          EndProperty
  287.          ForeColor       =   &H00000080&
  288.          Height          =   315
  289.          Index           =   6
  290.          Left            =   2910
  291.          TabIndex        =   27
  292.          Top             =   2310
  293.          Width           =   1695
  294.       End
  295.       Begin VB.Label Label2 
  296.          Alignment       =   1  'Right Justify
  297.          Height          =   345
  298.          Index           =   6
  299.          Left            =   60
  300.          TabIndex        =   26
  301.          Top             =   2250
  302.          Width           =   2325
  303.       End
  304.       Begin VB.Label LbCol 
  305.          BackColor       =   &H80000005&
  306.          BorderStyle     =   1  'Fixed Single
  307.          Caption         =   "nSum = nTot"
  308.          BeginProperty Font 
  309.             Name            =   "Euclid"
  310.             Size            =   9.75
  311.             Charset         =   0
  312.             Weight          =   700
  313.             Underline       =   0   'False
  314.             Italic          =   0   'False
  315.             Strikethrough   =   0   'False
  316.          EndProperty
  317.          ForeColor       =   &H00000000&
  318.          Height          =   315
  319.          Index           =   5
  320.          Left            =   2910
  321.          TabIndex        =   25
  322.          Top             =   1995
  323.          Width           =   1695
  324.       End
  325.       Begin VB.Label Label2 
  326.          Alignment       =   1  'Right Justify
  327.          Caption         =   "Other Code Lines"
  328.          Height          =   345
  329.          Index           =   5
  330.          Left            =   60
  331.          TabIndex        =   24
  332.          Top             =   1935
  333.          Width           =   2325
  334.       End
  335.       Begin VB.Label LbCol 
  336.          BackColor       =   &H80000005&
  337.          BorderStyle     =   1  'Fixed Single
  338.          Caption         =   "Dim strName"
  339.          BeginProperty Font 
  340.             Name            =   "Euclid"
  341.             Size            =   9.75
  342.             Charset         =   0
  343.             Weight          =   700
  344.             Underline       =   0   'False
  345.             Italic          =   0   'False
  346.             Strikethrough   =   0   'False
  347.          EndProperty
  348.          ForeColor       =   &H00C00000&
  349.          Height          =   315
  350.          Index           =   4
  351.          Left            =   2910
  352.          TabIndex        =   23
  353.          Top             =   1635
  354.          Width           =   1695
  355.       End
  356.       Begin VB.Label LbCol 
  357.          BackColor       =   &H80000005&
  358.          BorderStyle     =   1  'Fixed Single
  359.          Caption         =   "Public gnCount"
  360.          BeginProperty Font 
  361.             Name            =   "Euclid"
  362.             Size            =   9.75
  363.             Charset         =   0
  364.             Weight          =   700
  365.             Underline       =   0   'False
  366.             Italic          =   0   'False
  367.             Strikethrough   =   0   'False
  368.          EndProperty
  369.          ForeColor       =   &H000000C0&
  370.          Height          =   315
  371.          Index           =   3
  372.          Left            =   2910
  373.          TabIndex        =   22
  374.          Top             =   1290
  375.          Width           =   1695
  376.       End
  377.       Begin VB.Label LbCol 
  378.          BackColor       =   &H80000005&
  379.          BorderStyle     =   1  'Fixed Single
  380.          Caption         =   "' Sets all colors"
  381.          BeginProperty Font 
  382.             Name            =   "Euclid"
  383.             Size            =   9.75
  384.             Charset         =   0
  385.             Weight          =   700
  386.             Underline       =   0   'False
  387.             Italic          =   0   'False
  388.             Strikethrough   =   0   'False
  389.          EndProperty
  390.          ForeColor       =   &H00008000&
  391.          Height          =   315
  392.          Index           =   2
  393.          Left            =   2910
  394.          TabIndex        =   21
  395.          Top             =   975
  396.          Width           =   1695
  397.       End
  398.       Begin VB.Label LbCol 
  399.          BackColor       =   &H80000005&
  400.          BorderStyle     =   1  'Fixed Single
  401.          Caption         =   "Form Load"
  402.          BeginProperty Font 
  403.             Name            =   "Euclid"
  404.             Size            =   9.75
  405.             Charset         =   0
  406.             Weight          =   700
  407.             Underline       =   0   'False
  408.             Italic          =   0   'False
  409.             Strikethrough   =   0   'False
  410.          EndProperty
  411.          ForeColor       =   &H00000000&
  412.          Height          =   315
  413.          Index           =   1
  414.          Left            =   2910
  415.          TabIndex        =   20
  416.          Top             =   675
  417.          Width           =   1695
  418.       End
  419.       Begin VB.Label LbCol 
  420.          BackColor       =   &H00FFFFFF&
  421.          BorderStyle     =   1  'Fixed Single
  422.          Caption         =   "frmVBEditor"
  423.          BeginProperty Font 
  424.             Name            =   "Euclid"
  425.             Size            =   9.75
  426.             Charset         =   0
  427.             Weight          =   700
  428.             Underline       =   0   'False
  429.             Italic          =   0   'False
  430.             Strikethrough   =   0   'False
  431.          EndProperty
  432.          ForeColor       =   &H00C00000&
  433.          Height          =   315
  434.          Index           =   0
  435.          Left            =   2910
  436.          TabIndex        =   19
  437.          Top             =   360
  438.          Width           =   1695
  439.       End
  440.       Begin VB.Label Label2 
  441.          Alignment       =   1  'Right Justify
  442.          Caption         =   "Module Variables"
  443.          Height          =   345
  444.          Index           =   4
  445.          Left            =   60
  446.          TabIndex        =   18
  447.          Top             =   1605
  448.          Width           =   2325
  449.       End
  450.       Begin VB.Label Label2 
  451.          Alignment       =   1  'Right Justify
  452.          Caption         =   "Public Variables"
  453.          Height          =   345
  454.          Index           =   3
  455.          Left            =   60
  456.          TabIndex        =   17
  457.          Top             =   1260
  458.          Width           =   2325
  459.       End
  460.       Begin VB.Label Label2 
  461.          Alignment       =   1  'Right Justify
  462.          Caption         =   "Remarks"
  463.          Height          =   345
  464.          Index           =   2
  465.          Left            =   60
  466.          TabIndex        =   16
  467.          Top             =   945
  468.          Width           =   2325
  469.       End
  470.       Begin VB.Label Label2 
  471.          Alignment       =   1  'Right Justify
  472.          Caption         =   "Procedure Names"
  473.          Height          =   345
  474.          Index           =   1
  475.          Left            =   60
  476.          TabIndex        =   15
  477.          Top             =   645
  478.          Width           =   2325
  479.       End
  480.       Begin VB.Label Label2 
  481.          Alignment       =   1  'Right Justify
  482.          Caption         =   "Module Names"
  483.          Height          =   345
  484.          Index           =   0
  485.          Left            =   60
  486.          TabIndex        =   14
  487.          Top             =   360
  488.          Width           =   2325
  489.       End
  490.    End
  491.    Begin VB.Frame Frame3 
  492.       Caption         =   "Bold"
  493.       Height          =   1845
  494.       Left            =   3930
  495.       TabIndex        =   10
  496.       Top             =   450
  497.       Width           =   1095
  498.       Begin VB.OptionButton OptB 
  499.          Caption         =   "No"
  500.          CausesValidation=   0   'False
  501.          Height          =   390
  502.          Index           =   1
  503.          Left            =   120
  504.          TabIndex        =   12
  505.          Top             =   1140
  506.          Value           =   -1  'True
  507.          Width           =   915
  508.       End
  509.       Begin VB.OptionButton OptB 
  510.          Caption         =   "Yes"
  511.          CausesValidation=   0   'False
  512.          Height          =   390
  513.          Index           =   0
  514.          Left            =   120
  515.          TabIndex        =   11
  516.          Top             =   720
  517.          Width           =   915
  518.       End
  519.    End
  520.    Begin VB.TextBox txtExample 
  521.       Alignment       =   2  'Center
  522.       Height          =   510
  523.       Left            =   1200
  524.       TabIndex        =   9
  525.       Text            =   "AbCd ""0123"" ~ # & =*(strW$) %"
  526.       Top             =   2520
  527.       Width           =   3735
  528.    End
  529.    Begin VB.Frame Frame2 
  530.       Caption         =   "Size"
  531.       Height          =   1845
  532.       Left            =   2820
  533.       TabIndex        =   4
  534.       Top             =   450
  535.       Width           =   1125
  536.       Begin VB.OptionButton OptS 
  537.          Caption         =   "14"
  538.          BeginProperty Font 
  539.             Name            =   "Times New Roman"
  540.             Size            =   9.75
  541.             Charset         =   0
  542.             Weight          =   700
  543.             Underline       =   0   'False
  544.             Italic          =   0   'False
  545.             Strikethrough   =   0   'False
  546.          EndProperty
  547.          Height          =   225
  548.          Index           =   3
  549.          Left            =   270
  550.          TabIndex        =   35
  551.          Top             =   1470
  552.          Width           =   1095
  553.       End
  554.       Begin VB.OptionButton OptS 
  555.          Caption         =   "12"
  556.          BeginProperty Font 
  557.             Name            =   "Times New Roman"
  558.             Size            =   9.75
  559.             Charset         =   0
  560.             Weight          =   700
  561.             Underline       =   0   'False
  562.             Italic          =   0   'False
  563.             Strikethrough   =   0   'False
  564.          EndProperty
  565.          Height          =   225
  566.          Index           =   2
  567.          Left            =   270
  568.          TabIndex        =   7
  569.          Top             =   1080
  570.          Width           =   1095
  571.       End
  572.       Begin VB.OptionButton OptS 
  573.          Caption         =   "10"
  574.          BeginProperty Font 
  575.             Name            =   "Times New Roman"
  576.             Size            =   9.75
  577.             Charset         =   0
  578.             Weight          =   700
  579.             Underline       =   0   'False
  580.             Italic          =   0   'False
  581.             Strikethrough   =   0   'False
  582.          EndProperty
  583.          Height          =   225
  584.          Index           =   1
  585.          Left            =   270
  586.          TabIndex        =   6
  587.          Top             =   720
  588.          Value           =   -1  'True
  589.          Width           =   1095
  590.       End
  591.       Begin VB.OptionButton OptS 
  592.          Caption         =   " 8"
  593.          BeginProperty Font 
  594.             Name            =   "Times New Roman"
  595.             Size            =   9.75
  596.             Charset         =   0
  597.             Weight          =   700
  598.             Underline       =   0   'False
  599.             Italic          =   0   'False
  600.             Strikethrough   =   0   'False
  601.          EndProperty
  602.          Height          =   225
  603.          Index           =   0
  604.          Left            =   270
  605.          TabIndex        =   5
  606.          Top             =   390
  607.          Width           =   1095
  608.       End
  609.    End
  610.    Begin VB.Frame Frame1 
  611.       Caption         =   " Font Name"
  612.       Height          =   1845
  613.       Left            =   180
  614.       TabIndex        =   0
  615.       Top             =   450
  616.       Width           =   2685
  617.       Begin VB.OptionButton Opt 
  618.          Caption         =   "Courier New"
  619.          BeginProperty Font 
  620.             Name            =   "Courier New"
  621.             Size            =   12
  622.             Charset         =   0
  623.             Weight          =   400
  624.             Underline       =   0   'False
  625.             Italic          =   0   'False
  626.             Strikethrough   =   0   'False
  627.          EndProperty
  628.          Height          =   270
  629.          Index           =   2
  630.          Left            =   150
  631.          TabIndex        =   3
  632.          Top             =   1320
  633.          Width           =   2205
  634.       End
  635.       Begin VB.OptionButton Opt 
  636.          Caption         =   "Times New Roman"
  637.          BeginProperty Font 
  638.             Name            =   "Times New Roman"
  639.             Size            =   12
  640.             Charset         =   0
  641.             Weight          =   400
  642.             Underline       =   0   'False
  643.             Italic          =   0   'False
  644.             Strikethrough   =   0   'False
  645.          EndProperty
  646.          Height          =   285
  647.          Index           =   1
  648.          Left            =   150
  649.          TabIndex        =   2
  650.          Top             =   900
  651.          Width           =   2625
  652.       End
  653.       Begin VB.OptionButton Opt 
  654.          Caption         =   "Euclid"
  655.          Height          =   390
  656.          Index           =   0
  657.          Left            =   150
  658.          TabIndex        =   1
  659.          Top             =   450
  660.          Value           =   -1  'True
  661.          Width           =   2205
  662.       End
  663.    End
  664.    Begin VB.Label Label4 
  665.       Alignment       =   2  'Center
  666.       BackColor       =   &H00C0FFFF&
  667.       BorderStyle     =   1  'Fixed Single
  668.       Caption         =   "Changes are Automatically Saved"
  669.       BeginProperty Font 
  670.          Name            =   "Euclid"
  671.          Size            =   11.25
  672.          Charset         =   0
  673.          Weight          =   400
  674.          Underline       =   0   'False
  675.          Italic          =   0   'False
  676.          Strikethrough   =   0   'False
  677.       EndProperty
  678.       Height          =   345
  679.       Left            =   180
  680.       TabIndex        =   37
  681.       Top             =   30
  682.       Width           =   3795
  683.    End
  684.    Begin VB.Label Label1 
  685.       BorderStyle     =   1  'Fixed Single
  686.       Caption         =   "Example"
  687.       Height          =   735
  688.       Left            =   150
  689.       TabIndex        =   8
  690.       Top             =   2430
  691.       Width           =   4875
  692.    End
  693. End
  694. Attribute VB_Name = "frmOptions"
  695. Attribute VB_GlobalNameSpace = False
  696. Attribute VB_Creatable = False
  697. Attribute VB_PredeclaredId = True
  698. Attribute VB_Exposed = False
  699. Option Explicit
  700.     Dim nColInd             As Long 'Index of the Item to change
  701. Private Sub cmdExit_Click()
  702.     Unload Me
  703.     End Sub
  704. Private Sub Form_Load()
  705.     SetOptions
  706.     ShowExample
  707.     End Sub
  708. Private Sub SetOptions()
  709.     ' The pupose of this Sub is to make the Options
  710.     ' Buttons match the values held by the variables
  711.     Dim N       As Long
  712.     'FontName
  713.     For N = 0 To 2
  714.         If Opt(N).Caption = sfName Then
  715.             Opt(N).Value = True
  716.         End If
  717.     Next
  718.     'Font Size
  719.     For N = 0 To 3
  720.         If Val(OptS(N).Caption) = nFSize Then
  721.             OptS(N).Value = True
  722.         End If
  723.     Next
  724.     'Bold or NOT Bold
  725.     If bBold = True Then
  726.         OptB(0).Value = True
  727.     Else
  728.         OptB(1).Value = True
  729.     End If
  730.     'The Forecolors for various code lines
  731.     For N = 0 To 6
  732.         LbCol(N).ForeColor = gnCol(N)
  733.     Next
  734.     End Sub
  735. Private Sub LbCol_Click(Index As Integer)
  736.     ' Variable holds the index of the selected item
  737.     nColInd = Index
  738.     End Sub
  739. Private Sub LbColPal_Click(Index As Integer)
  740.     ' Set global variable and show effect on label
  741.     gnCol(nColInd) = LbColPal(Index).ForeColor
  742.     LbCol(nColInd).ForeColor = gnCol(nColInd)
  743.     bColors = True
  744.     End Sub
  745. Private Sub Opt_Click(Index As Integer)
  746.     ' Select FontName and show effect
  747.     sfName = Opt(Index).Caption
  748.     ShowExample
  749.     End Sub
  750. Private Sub OptB_Click(Index As Integer)
  751.     ' Select Bold Yes/No and show effect
  752.     If Index = 0 Then
  753.         bBold = True
  754.     Else
  755.         bBold = False
  756.     End If
  757.     ShowExample
  758.     End Sub
  759. Private Sub OptS_Click(Index As Integer)
  760.     ' Select Font Size and show effect
  761.     nFSize = Val(OptS(Index).Caption)
  762.     ShowExample
  763.     End Sub
  764. Private Sub ShowExample()
  765.     ' Show results of selections
  766.     txtExample.FontName = sfName
  767.     txtExample.FontSize = nFSize
  768.     txtExample.FontBold = bBold
  769.     End Sub
  770. Private Sub Picture1_Click()
  771.     End Sub
  772.