home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / VBASIC / LEDVB25.ZIP / VB.ZIP / LEDCONTR.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-01-17  |  44.8 KB  |  1,266 lines

  1. VERSION 2.00
  2. Begin Form ledcontrol 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "LED Custom Control"
  6.    ClientHeight    =   5985
  7.    ClientLeft      =   1050
  8.    ClientTop       =   1410
  9.    ClientWidth     =   9075
  10.    Height          =   6390
  11.    Left            =   990
  12.    LinkTopic       =   "Form1"
  13.    MDIChild        =   -1  'True
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   299.25
  16.    ScaleMode       =   2  'Point
  17.    ScaleWidth      =   453.75
  18.    Top             =   1065
  19.    Width           =   9195
  20.    Begin Frame Frame6 
  21.       BackColor       =   &H00C0C0C0&
  22.       Caption         =   "LED Control Properties"
  23.       FontBold        =   -1  'True
  24.       FontItalic      =   0   'False
  25.       FontName        =   "MS Sans Serif"
  26.       FontSize        =   9.75
  27.       FontStrikethru  =   0   'False
  28.       FontUnderline   =   0   'False
  29.       ForeColor       =   &H00000080&
  30.       Height          =   4560
  31.       Left            =   915
  32.       TabIndex        =   16
  33.       Top             =   1305
  34.       Width           =   3495
  35.       Begin Frame Frame1 
  36.          BackColor       =   &H00C0C0C0&
  37.          Caption         =   "AutoSize"
  38.          FontBold        =   0   'False
  39.          FontItalic      =   0   'False
  40.          FontName        =   "MS Sans Serif"
  41.          FontSize        =   8.25
  42.          FontStrikethru  =   0   'False
  43.          FontUnderline   =   0   'False
  44.          ForeColor       =   &H00FF0000&
  45.          Height          =   1030
  46.          Index           =   3
  47.          Left            =   1725
  48.          TabIndex        =   61
  49.          Top             =   2505
  50.          Width           =   1410
  51.          Begin OptionButton Option5 
  52.             BackColor       =   &H00C0C0C0&
  53.             Caption         =   "None"
  54.             FontBold        =   0   'False
  55.             FontItalic      =   0   'False
  56.             FontName        =   "MS Sans Serif"
  57.             FontSize        =   8.25
  58.             FontStrikethru  =   0   'False
  59.             FontUnderline   =   0   'False
  60.             ForeColor       =   &H00000000&
  61.             Height          =   225
  62.             Index           =   0
  63.             Left            =   90
  64.             TabIndex        =   64
  65.             Top             =   270
  66.             Value           =   -1  'True
  67.             Width           =   1200
  68.          End
  69.          Begin OptionButton Option5 
  70.             BackColor       =   &H00C0C0C0&
  71.             Caption         =   "Size Control"
  72.             FontBold        =   0   'False
  73.             FontItalic      =   0   'False
  74.             FontName        =   "MS Sans Serif"
  75.             FontSize        =   8.25
  76.             FontStrikethru  =   0   'False
  77.             FontUnderline   =   0   'False
  78.             ForeColor       =   &H00000000&
  79.             Height          =   225
  80.             Index           =   1
  81.             Left            =   90
  82.             TabIndex        =   63
  83.             Top             =   480
  84.             Width           =   1200
  85.          End
  86.          Begin OptionButton Option5 
  87.             BackColor       =   &H00C0C0C0&
  88.             Caption         =   "Size LEDs"
  89.             FontBold        =   0   'False
  90.             FontItalic      =   0   'False
  91.             FontName        =   "MS Sans Serif"
  92.             FontSize        =   8.25
  93.             FontStrikethru  =   0   'False
  94.             FontUnderline   =   0   'False
  95.             ForeColor       =   &H00000000&
  96.             Height          =   225
  97.             Index           =   2
  98.             Left            =   90
  99.             TabIndex        =   62
  100.             Top             =   690
  101.             Width           =   1200
  102.          End
  103.       End
  104.       Begin HScrollBar HScroll1 
  105.          Height          =   255
  106.          Index           =   8
  107.          Left            =   1110
  108.          Max             =   32
  109.          TabIndex        =   2
  110.          Top             =   735
  111.          Value           =   1
  112.          Width           =   1875
  113.       End
  114.       Begin CheckBox Check1 
  115.          BackColor       =   &H00C0C0C0&
  116.          Caption         =   "MouseControl"
  117.          FontBold        =   0   'False
  118.          FontItalic      =   0   'False
  119.          FontName        =   "MS Sans Serif"
  120.          FontSize        =   8.25
  121.          FontStrikethru  =   0   'False
  122.          FontUnderline   =   0   'False
  123.          ForeColor       =   &H00FF0000&
  124.          Height          =   315
  125.          Left            =   150
  126.          TabIndex        =   8
  127.          Top             =   3720
  128.          Value           =   1  'Checked
  129.          Width           =   1275
  130.       End
  131.       Begin Frame Frame2 
  132.          BackColor       =   &H00C0C0C0&
  133.          Caption         =   "Mode"
  134.          FontBold        =   0   'False
  135.          FontItalic      =   0   'False
  136.          FontName        =   "MS Sans Serif"
  137.          FontSize        =   8.25
  138.          FontStrikethru  =   0   'False
  139.          FontUnderline   =   0   'False
  140.          ForeColor       =   &H00FF0000&
  141.          Height          =   765
  142.          Index           =   0
  143.          Left            =   1725
  144.          TabIndex        =   17
  145.          Top             =   3690
  146.          Width           =   1200
  147.          Begin OptionButton Option2 
  148.             BackColor       =   &H00C0C0C0&
  149.             Caption         =   "Bitwise"
  150.             FontBold        =   0   'False
  151.             FontItalic      =   0   'False
  152.             FontName        =   "MS Sans Serif"
  153.             FontSize        =   8.25
  154.             FontStrikethru  =   0   'False
  155.             FontUnderline   =   0   'False
  156.             ForeColor       =   &H00000000&
  157.             Height          =   195
  158.             Index           =   1
  159.             Left            =   90
  160.             TabIndex        =   18
  161.             Top             =   480
  162.             Width           =   1000
  163.          End
  164.          Begin OptionButton Option2 
  165.             BackColor       =   &H00C0C0C0&
  166.             Caption         =   "Value"
  167.             FontBold        =   0   'False
  168.             FontItalic      =   0   'False
  169.             FontName        =   "MS Sans Serif"
  170.             FontSize        =   8.25
  171.             FontStrikethru  =   0   'False
  172.             FontUnderline   =   0   'False
  173.             ForeColor       =   &H00000000&
  174.             Height          =   195
  175.             Index           =   0
  176.             Left            =   90
  177.             TabIndex        =   7
  178.             Top             =   270
  179.             Value           =   -1  'True
  180.             Width           =   1000
  181.          End
  182.       End
  183.       Begin Frame Frame1 
  184.          BackColor       =   &H00C0C0C0&
  185.          Caption         =   "LEDStyle"
  186.          FontBold        =   0   'False
  187.          FontItalic      =   0   'False
  188.          FontName        =   "MS Sans Serif"
  189.          FontSize        =   8.25
  190.          FontStrikethru  =   0   'False
  191.          FontUnderline   =   0   'False
  192.          ForeColor       =   &H00FF0000&
  193.          Height          =   1030
  194.          Index           =   0
  195.          Left            =   165
  196.          TabIndex        =   19
  197.          Top             =   2505
  198.          Width           =   1200
  199.          Begin OptionButton Option1 
  200.             BackColor       =   &H00C0C0C0&
  201.             Caption         =   "Bitmap"
  202.             FontBold        =   0   'False
  203.             FontItalic      =   0   'False
  204.             FontName        =   "MS Sans Serif"
  205.             FontSize        =   8.25
  206.             FontStrikethru  =   0   'False
  207.             FontUnderline   =   0   'False
  208.             ForeColor       =   &H00000000&
  209.             Height          =   225
  210.             Index           =   2
  211.             Left            =   90
  212.             TabIndex        =   20
  213.             Top             =   735
  214.             Value           =   -1  'True
  215.             Width           =   1000
  216.          End
  217.          Begin OptionButton Option1 
  218.             BackColor       =   &H00C0C0C0&
  219.             Caption         =   "Circular"
  220.             FontBold        =   0   'False
  221.             FontItalic      =   0   'False
  222.             FontName        =   "MS Sans Serif"
  223.             FontSize        =   8.25
  224.             FontStrikethru  =   0   'False
  225.             FontUnderline   =   0   'False
  226.             ForeColor       =   &H00000000&
  227.             Height          =   225
  228.             Index           =   1
  229.             Left            =   90
  230.             TabIndex        =   21
  231.             Top             =   525
  232.             Width           =   1000
  233.          End
  234.          Begin OptionButton Option1 
  235.             BackColor       =   &H00C0C0C0&
  236.             Caption         =   "Rectangle"
  237.             FontBold        =   0   'False
  238.             FontItalic      =   0   'False
  239.             FontName        =   "MS Sans Serif"
  240.             FontSize        =   8.25
  241.             FontStrikethru  =   0   'False
  242.             FontUnderline   =   0   'False
  243.             ForeColor       =   &H00000000&
  244.             Height          =   225
  245.             Index           =   0
  246.             Left            =   90
  247.             TabIndex        =   6
  248.             Top             =   315
  249.             Width           =   1000
  250.          End
  251.       End
  252.       Begin HScrollBar HScroll1 
  253.          Height          =   255
  254.          Index           =   2
  255.          Left            =   1110
  256.          Max             =   30
  257.          TabIndex        =   3
  258.          Top             =   1320
  259.          Width           =   1875
  260.       End
  261.       Begin HScrollBar HScroll1 
  262.          Height          =   255
  263.          Index           =   3
  264.          Left            =   1110
  265.          Max             =   30
  266.          TabIndex        =   5
  267.          Top             =   2145
  268.          Width           =   1875
  269.       End
  270.       Begin HScrollBar HScroll1 
  271.          Height          =   255
  272.          Index           =   4
  273.          Left            =   1110
  274.          Max             =   30
  275.          TabIndex        =   4
  276.          Top             =   1575
  277.          Width           =   1875
  278.       End
  279.       Begin HScrollBar HScroll1 
  280.          Height          =   255
  281.          Index           =   5
  282.          Left            =   1110
  283.          Max             =   32
  284.          Min             =   1
  285.          TabIndex        =   1
  286.          Top             =   480
  287.          Value           =   1
  288.          Width           =   1875
  289.       End
  290.       Begin Label Label1 
  291.          Alignment       =   1  'Right Justify
  292.          AutoSize        =   -1  'True
  293.          BackStyle       =   0  'Transparent
  294.          Caption         =   "Value :"
  295.          FontBold        =   0   'False
  296.          FontItalic      =   0   'False
  297.          FontName        =   "MS Sans Serif"
  298.          FontSize        =   8.25
  299.          FontStrikethru  =   0   'False
  300.          FontUnderline   =   0   'False
  301.          ForeColor       =   &H00FF0000&
  302.          Height          =   195
  303.          Index           =   8
  304.          Left            =   570
  305.          TabIndex        =   22
  306.          Top             =   750
  307.          Width           =   495
  308.       End
  309.       Begin Label Label2 
  310.          AutoSize        =   -1  'True
  311.          BackStyle       =   0  'Transparent
  312.          Caption         =   "0"
  313.          Height          =   195
  314.          Index           =   8
  315.          Left            =   3015
  316.          TabIndex        =   23
  317.          Top             =   780
  318.          Width           =   120
  319.       End
  320.       Begin Label Label1 
  321.          Alignment       =   1  'Right Justify
  322.          AutoSize        =   -1  'True
  323.          BackStyle       =   0  'Transparent
  324.          Caption         =   "LEDHeight :"
  325.          FontBold        =   0   'False
  326.          FontItalic      =   0   'False
  327.          FontName        =   "MS Sans Serif"
  328.          FontSize        =   8.25
  329.          FontStrikethru  =   0   'False
  330.          FontUnderline   =   0   'False
  331.          ForeColor       =   &H00FF0000&
  332.          Height          =   195
  333.          Index           =   2
  334.          Left            =   210
  335.          TabIndex        =   24
  336.          Top             =   1350
  337.          Width           =   870
  338.       End
  339.       Begin Label Label2 
  340.          AutoSize        =   -1  'True
  341.          BackStyle       =   0  'Transparent
  342.          Caption         =   "0"
  343.          Height          =   195
  344.          Index           =   2
  345.          Left            =   3015
  346.          TabIndex        =   25
  347.          Top             =   1380
  348.          Width           =   120
  349.       End
  350.       Begin Label Label1 
  351.          Alignment       =   1  'Right Justify
  352.          AutoSize        =   -1  'True
  353.          BackStyle       =   0  'Transparent
  354.          Caption         =   "LEDSep :"
  355.          FontBold        =   0   'False
  356.          FontItalic      =   0   'False
  357.          FontName        =   "MS Sans Serif"
  358.          FontSize        =   8.25
  359.          FontStrikethru  =   0   'False
  360.          FontUnderline   =   0   'False
  361.          ForeColor       =   &H00FF0000&
  362.          Height          =   195
  363.          Index           =   3
  364.          Left            =   375
  365.          TabIndex        =   26
  366.          Top             =   2190
  367.          Width           =   690
  368.       End
  369.       Begin Label Label2 
  370.          AutoSize        =   -1  'True
  371.          BackStyle       =   0  'Transparent
  372.          Caption         =   "0"
  373.          Height          =   180
  374.          Index           =   3
  375.          Left            =   3015
  376.          TabIndex        =   27
  377.          Top             =   2190
  378.          Width           =   120
  379.       End
  380.       Begin Label Label1 
  381.          Alignment       =   1  'Right Justify
  382.          AutoSize        =   -1  'True
  383.          BackStyle       =   0  'Transparent
  384.          Caption         =   "LEDWidth :"
  385.          FontBold        =   0   'False
  386.          FontItalic      =   0   'False
  387.          FontName        =   "MS Sans Serif"
  388.          FontSize        =   8.25
  389.          FontStrikethru  =   0   'False
  390.          FontUnderline   =   0   'False
  391.          ForeColor       =   &H00FF0000&
  392.          Height          =   195
  393.          Index           =   4
  394.          Left            =   240
  395.          TabIndex        =   29
  396.          Top             =   1605
  397.          Width           =   825
  398.       End
  399.       Begin Label Label2 
  400.          AutoSize        =   -1  'True
  401.          BackStyle       =   0  'Transparent
  402.          Caption         =   "0"
  403.          Height          =   195
  404.          Index           =   4
  405.          Left            =   3015
  406.          TabIndex        =   30
  407.          Top             =   1620
  408.          Width           =   120
  409.       End
  410.       Begin Label Label1 
  411.          Alignment       =   1  'Right Justify
  412.          AutoSize        =   -1  'True
  413.          BackStyle       =   0  'Transparent
  414.          Caption         =   "NumLEDs :"
  415.          FontBold        =   0   'False
  416.          FontItalic      =   0   'False
  417.          FontName        =   "MS Sans Serif"
  418.          FontSize        =   8.25
  419.          FontStrikethru  =   0   'False
  420.          FontUnderline   =   0   'False
  421.          ForeColor       =   &H00FF0000&
  422.          Height          =   195
  423.          Index           =   5
  424.          Left            =   270
  425.          TabIndex        =   31
  426.          Top             =   510
  427.          Width           =   810
  428.       End
  429.       Begin Label Label2 
  430.          AutoSize        =   -1  'True
  431.          BackStyle       =   0  'Transparent
  432.          Caption         =   "0"
  433.          Height          =   195
  434.          Index           =   5
  435.          Left            =   3015
  436.          TabIndex        =   32
  437.          Top             =   540
  438.          Width           =   120
  439.       End
  440.    End
  441.    Begin Frame Frame5 
  442.       BackColor       =   &H00C0C0C0&
  443.       Caption         =   "General Appearance Properties"
  444.       FontBold        =   -1  'True
  445.       FontItalic      =   0   'False
  446.       FontName        =   "MS Sans Serif"
  447.       FontSize        =   9.75
  448.       FontStrikethru  =   0   'False
  449.       FontUnderline   =   0   'False
  450.       ForeColor       =   &H00000080&
  451.       Height          =   4560
  452.       Left            =   4665
  453.       TabIndex        =   43
  454.       Top             =   1305
  455.       Width           =   4200
  456.       Begin Frame Frame4 
  457.          BackColor       =   &H00C0C0C0&
  458.          Caption         =   "Control Size"
  459.          Height          =   810
  460.          Index           =   2
  461.          Left            =   150
  462.          TabIndex        =   54
  463.          Top             =   1050
  464.          Width           =   3900
  465.          Begin HScrollBar HScroll1 
  466.             Height          =   255
  467.             Index           =   10
  468.             Left            =   1455
  469.             Max             =   400
  470.             TabIndex        =   56
  471.             Top             =   480
  472.             Value           =   10
  473.             Width           =   1875
  474.          End
  475.          Begin HScrollBar HScroll1 
  476.             Height          =   255
  477.             Index           =   9
  478.             Left            =   1455
  479.             Max             =   400
  480.             TabIndex        =   55
  481.             Top             =   225
  482.             Value           =   10
  483.             Width           =   1875
  484.          End
  485.          Begin Label Label2 
  486.             AutoSize        =   -1  'True
  487.             BackStyle       =   0  'Transparent
  488.             Caption         =   "0"
  489.             Height          =   195
  490.             Index           =   10
  491.             Left            =   3390
  492.             TabIndex        =   58
  493.             Top             =   540
  494.             Width           =   120
  495.          End
  496.          Begin Label Label1 
  497.             Alignment       =   1  'Right Justify
  498.             AutoSize        =   -1  'True
  499.             BackStyle       =   0  'Transparent
  500.             Caption         =   "Width :"
  501.             FontBold        =   0   'False
  502.             FontItalic      =   0   'False
  503.             FontName        =   "MS Sans Serif"
  504.             FontSize        =   8.25
  505.             FontStrikethru  =   0   'False
  506.             FontUnderline   =   0   'False
  507.             ForeColor       =   &H00FF0000&
  508.             Height          =   195
  509.             Index           =   10
  510.             Left            =   900
  511.             TabIndex        =   60
  512.             Top             =   525
  513.             Width           =   510
  514.          End
  515.          Begin Label Label2 
  516.             AutoSize        =   -1  'True
  517.             BackStyle       =   0  'Transparent
  518.             Caption         =   "0"
  519.             Height          =   195
  520.             Index           =   9
  521.             Left            =   3390
  522.             TabIndex        =   59
  523.             Top             =   300
  524.             Width           =   120
  525.          End
  526.          Begin Label Label1 
  527.             Alignment       =   1  'Right Justify
  528.             AutoSize        =   -1  'True
  529.             BackStyle       =   0  'Transparent
  530.             Caption         =   "Height :"
  531.             FontBold        =   0   'False
  532.             FontItalic      =   0   'False
  533.             FontName        =   "MS Sans Serif"
  534.             FontSize        =   8.25
  535.             FontStrikethru  =   0   'False
  536.             FontUnderline   =   0   'False
  537.             ForeColor       =   &H00FF0000&
  538.             Height          =   195
  539.             Index           =   9
  540.             Left            =   870
  541.             TabIndex        =   57
  542.             Top             =   285
  543.             Width           =   555
  544.          End
  545.       End
  546.       Begin Frame Frame4 
  547.          BackColor       =   &H00C0C0C0&
  548.          Caption         =   "Bevel Properties"
  549.          Height          =   1740
  550.          Index           =   1
  551.          Left            =   150
  552.          TabIndex        =   33
  553.          Top             =   2745
  554.          Width           =   3900
  555.          Begin HScrollBar HScroll1 
  556.             Height          =   255
  557.             Index           =   7
  558.             Left            =   1455
  559.             Max             =   10
  560.             TabIndex        =   49
  561.             Top             =   225
  562.             Value           =   6
  563.             Width           =   1875
  564.          End
  565.          Begin HScrollBar HScroll1 
  566.             Height          =   255
  567.             Index           =   6
  568.             Left            =   1455
  569.             Max             =   10
  570.             TabIndex        =   13
  571.             Top             =   480
  572.             Value           =   2
  573.             Width           =   1875
  574.          End
  575.          Begin Frame Frame1 
  576.             BackColor       =   &H00C0C0C0&
  577.             Caption         =   "BevelOuter"
  578.             FontBold        =   0   'False
  579.             FontItalic      =   0   'False
  580.             FontName        =   "MS Sans Serif"
  581.             FontSize        =   8.25
  582.             FontStrikethru  =   0   'False
  583.             FontUnderline   =   0   'False
  584.             ForeColor       =   &H00FF0000&
  585.             Height          =   915
  586.             Index           =   2
  587.             Left            =   1650
  588.             TabIndex        =   34
  589.             Top             =   720
  590.             Width           =   1290
  591.             Begin OptionButton Option7 
  592.                BackColor       =   &H00C0C0C0&
  593.                Caption         =   "None"
  594.                FontBold        =   0   'False
  595.                FontItalic      =   0   'False
  596.                FontName        =   "MS Sans Serif"
  597.                FontSize        =   8.25
  598.                FontStrikethru  =   0   'False
  599.                FontUnderline   =   0   'False
  600.                ForeColor       =   &H00000000&
  601.                Height          =   225
  602.                Index           =   0
  603.                Left            =   90
  604.                TabIndex        =   15
  605.                Top             =   270
  606.                Width           =   900
  607.             End
  608.             Begin OptionButton Option7 
  609.                BackColor       =   &H00C0C0C0&
  610.                Caption         =   "Raised"
  611.                FontBold        =   0   'False
  612.                FontItalic      =   0   'False
  613.                FontName        =   "MS Sans Serif"
  614.                FontSize        =   8.25
  615.                FontStrikethru  =   0   'False
  616.                FontUnderline   =   0   'False
  617.                ForeColor       =   &H00000000&
  618.                Height          =   225
  619.                Index           =   1
  620.                Left            =   90
  621.                TabIndex        =   35
  622.                Top             =   465
  623.                Value           =   -1  'True
  624.                Width           =   900
  625.             End
  626.             Begin OptionButton Option7 
  627.                BackColor       =   &H00C0C0C0&
  628.                Caption         =   "Inset"
  629.                FontBold        =   0   'False
  630.                FontItalic      =   0   'False
  631.                FontName        =   "MS Sans Serif"
  632.                FontSize        =   8.25
  633.                FontStrikethru  =   0   'False
  634.                FontUnderline   =   0   'False
  635.                ForeColor       =   &H00000000&
  636.                Height          =   225
  637.                Index           =   2
  638.                Left            =   90
  639.                TabIndex        =   36
  640.                Top             =   660
  641.                Width           =   900
  642.             End
  643.          End
  644.          Begin Frame Frame1 
  645.             BackColor       =   &H00C0C0C0&
  646.             Caption         =   "BevelInner"
  647.             FontBold        =   0   'False
  648.             FontItalic      =   0   'False
  649.             FontName        =   "MS Sans Serif"
  650.             FontSize        =   8.25
  651.             FontStrikethru  =   0   'False
  652.             FontUnderline   =   0   'False
  653.             ForeColor       =   &H00FF0000&
  654.             Height          =   915
  655.             Index           =   1
  656.             Left            =   315
  657.             TabIndex        =   37
  658.             Top             =   720
  659.             Width           =   1290
  660.             Begin OptionButton Option6 
  661.                BackColor       =   &H00C0C0C0&
  662.                Caption         =   "Inset"
  663.                FontBold        =   0   'False
  664.                FontItalic      =   0   'False
  665.                FontName        =   "MS Sans Serif"
  666.                FontSize        =   8.25
  667.                FontStrikethru  =   0   'False
  668.                FontUnderline   =   0   'False
  669.                ForeColor       =   &H00000000&
  670.                Height          =   225
  671.                Index           =   2
  672.                Left            =   90
  673.                TabIndex        =   38
  674.                Top             =   660
  675.                Value           =   -1  'True
  676.                Width           =   900
  677.             End
  678.             Begin OptionButton Option6 
  679.                BackColor       =   &H00C0C0C0&
  680.                Caption         =   "Raised"
  681.                FontBold        =   0   'False
  682.                FontItalic      =   0   'False
  683.                FontName        =   "MS Sans Serif"
  684.                FontSize        =   8.25
  685.                FontStrikethru  =   0   'False
  686.                FontUnderline   =   0   'False
  687.                ForeColor       =   &H00000000&
  688.                Height          =   225
  689.                Index           =   1
  690.                Left            =   90
  691.                TabIndex        =   39
  692.                Top             =   465
  693.                Width           =   900
  694.             End
  695.             Begin OptionButton Option6 
  696.                BackColor       =   &H00C0C0C0&
  697.                Caption         =   "None"
  698.                FontBold        =   0   'False
  699.                FontItalic      =   0   'False
  700.                FontName        =   "MS Sans Serif"
  701.                FontSize        =   8.25
  702.                FontStrikethru  =   0   'False
  703.                FontUnderline   =   0   'False
  704.                ForeColor       =   &H00000000&
  705.                Height          =   225
  706.                Index           =   0
  707.                Left            =   90
  708.                TabIndex        =   14
  709.                Top             =   270
  710.                Width           =   900
  711.             End
  712.          End
  713.          Begin Label Label2 
  714.             AutoSize        =   -1  'True
  715.             BackStyle       =   0  'Transparent
  716.             Caption         =   "6"
  717.             Height          =   195
  718.             Index           =   7
  719.             Left            =   3390
  720.             TabIndex        =   50
  721.             Top             =   270
  722.             Width           =   120
  723.          End
  724.          Begin Label Label1 
  725.             Alignment       =   1  'Right Justify
  726.             AutoSize        =   -1  'True
  727.             BackStyle       =   0  'Transparent
  728.             Caption         =   "BorderWidth :"
  729.             FontBold        =   0   'False
  730.             FontItalic      =   0   'False
  731.             FontName        =   "MS Sans Serif"
  732.             FontSize        =   8.25
  733.             FontStrikethru  =   0   'False
  734.             FontUnderline   =   0   'False
  735.             ForeColor       =   &H00FF0000&
  736.             Height          =   195
  737.             Index           =   7
  738.             Left            =   450
  739.             TabIndex        =   65
  740.             Top             =   255
  741.             Width           =   975
  742.          End
  743.          Begin Label Label1 
  744.             Alignment       =   1  'Right Justify
  745.             AutoSize        =   -1  'True
  746.             BackStyle       =   0  'Transparent
  747.             Caption         =   "BevelWidth :"
  748.             FontBold        =   0   'False
  749.             FontItalic      =   0   'False
  750.             FontName        =   "MS Sans Serif"
  751.             FontSize        =   8.25
  752.             FontStrikethru  =   0   'False
  753.             FontUnderline   =   0   'False
  754.             ForeColor       =   &H00FF0000&
  755.             Height          =   195
  756.             Index           =   6
  757.             Left            =   510
  758.             TabIndex        =   40
  759.             Top             =   510
  760.             Width           =   915
  761.          End
  762.          Begin Label Label2 
  763.             AutoSize        =   -1  'True
  764.             BackStyle       =   0  'Transparent
  765.             Caption         =   "2"
  766.             Height          =   195
  767.             Index           =   6
  768.             Left            =   3390
  769.             TabIndex        =   41
  770.             Top             =   510
  771.             Width           =   120
  772.          End
  773.       End
  774.       Begin Frame Frame4 
  775.          BackColor       =   &H00C0C0C0&
  776.          Caption         =   "Inner Border Properties"
  777.          Height          =   855
  778.          Index           =   0
  779.          Left            =   150
  780.          TabIndex        =   48
  781.          Top             =   1875
  782.          Width           =   3900
  783.          Begin HScrollBar HScroll1 
  784.             Height          =   255
  785.             Index           =   1
  786.             Left            =   1455
  787.             Max             =   30
  788.             TabIndex        =   12
  789.             Top             =   540
  790.             Width           =   1875
  791.          End
  792.          Begin HScrollBar HScroll1 
  793.             Height          =   255
  794.             Index           =   0
  795.             Left            =   1455
  796.             Max             =   30
  797.             TabIndex        =   11
  798.             Top             =   300
  799.             Width           =   1875
  800.          End
  801.          Begin Label Label1 
  802.             Alignment       =   1  'Right Justify
  803.             AutoSize        =   -1  'True
  804.             BackStyle       =   0  'Transparent
  805.             Caption         =   "BorderVertical :"
  806.             FontBold        =   0   'False
  807.             FontItalic      =   0   'False
  808.             FontName        =   "MS Sans Serif"
  809.             FontSize        =   8.25
  810.             FontStrikethru  =   0   'False
  811.             FontUnderline   =   0   'False
  812.             ForeColor       =   &H00FF0000&
  813.             Height          =   195
  814.             Index           =   1
  815.             Left            =   315
  816.             TabIndex        =   42
  817.             Top             =   570
  818.             Width           =   1080
  819.          End
  820.          Begin Label Label1 
  821.             Alignment       =   1  'Right Justify
  822.             AutoSize        =   -1  'True
  823.             BackStyle       =   0  'Transparent
  824.             Caption         =   "BorderHorizontal :"
  825.             FontBold        =   0   'False
  826.             FontItalic      =   0   'False
  827.             FontName        =   "MS Sans Serif"
  828.             FontSize        =   8.25
  829.             FontStrikethru  =   0   'False
  830.             FontUnderline   =   0   'False
  831.             ForeColor       =   &H00FF0000&
  832.             Height          =   195
  833.             Index           =   0
  834.             Left            =   150
  835.             TabIndex        =   53
  836.             Top             =   315
  837.             Width           =   1260
  838.          End
  839.          Begin Label Label2 
  840.             AutoSize        =   -1  'True
  841.             BackStyle       =   0  'Transparent
  842.             Caption         =   "0"
  843.             Height          =   195
  844.             Index           =   1
  845.             Left            =   3390
  846.             TabIndex        =   52
  847.             Top             =   585
  848.             Width           =   120
  849.          End
  850.          Begin Label Label2 
  851.             AutoSize        =   -1  'True
  852.             BackStyle       =   0  'Transparent
  853.             Caption         =   "0"
  854.             Height          =   195
  855.             Index           =   0
  856.             Left            =   3390
  857.             TabIndex        =   51
  858.             Top             =   360
  859.             Width           =   120
  860.          End
  861.       End
  862.       Begin Frame Frame3 
  863.          BackColor       =   &H00C0C0C0&
  864.          Caption         =   "Direction"
  865.          ForeColor       =   &H00000000&
  866.          Height          =   795
  867.          Left            =   2775
  868.          TabIndex        =   46
  869.          Top             =   240
  870.          Width           =   1275
  871.          Begin OptionButton Option3 
  872.             BackColor       =   &H00C0C0C0&
  873.             Caption         =   "Backward"
  874.             FontBold        =   0   'False
  875.             FontItalic      =   0   'False
  876.             FontName        =   "MS Sans Serif"
  877.             FontSize        =   8.25
  878.             FontStrikethru  =   0   'False
  879.             FontUnderline   =   0   'False
  880.             ForeColor       =   &H00FF0000&
  881.             Height          =   255
  882.             Index           =   1
  883.             Left            =   120
  884.             TabIndex        =   47
  885.             Top             =   480
  886.             Width           =   1100
  887.          End
  888.          Begin OptionButton Option3 
  889.             BackColor       =   &H00C0C0C0&
  890.             Caption         =   "Forward"
  891.             FontBold        =   0   'False
  892.             FontItalic      =   0   'False
  893.             FontName        =   "MS Sans Serif"
  894.             FontSize        =   8.25
  895.             FontStrikethru  =   0   'False
  896.             FontUnderline   =   0   'False
  897.             ForeColor       =   &H00FF0000&
  898.             Height          =   255
  899.             Index           =   0
  900.             Left            =   120
  901.             TabIndex        =   10
  902.             Top             =   270
  903.             Value           =   -1  'True
  904.             Width           =   1100
  905.          End
  906.       End
  907.       Begin Frame Frame2 
  908.          BackColor       =   &H00C0C0C0&
  909.          Caption         =   "Orientation"
  910.          Height          =   795
  911.          Index           =   1
  912.          Left            =   150
  913.          TabIndex        =   44
  914.          Top             =   240
  915.          Width           =   1275
  916.          Begin OptionButton Option4 
  917.             BackColor       =   &H00C0C0C0&
  918.             Caption         =   "Horizontal"
  919.             FontBold        =   0   'False
  920.             FontItalic      =   0   'False
  921.             FontName        =   "MS Sans Serif"
  922.             FontSize        =   8.25
  923.             FontStrikethru  =   0   'False
  924.             FontUnderline   =   0   'False
  925.             ForeColor       =   &H00FF0000&
  926.             Height          =   195
  927.             Index           =   0
  928.             Left            =   105
  929.             TabIndex        =   9
  930.             Top             =   285
  931.             Value           =   -1  'True
  932.             Width           =   1100
  933.          End
  934.          Begin OptionButton Option4 
  935.             BackColor       =   &H00C0C0C0&
  936.             Caption         =   "Vertical"
  937.             FontBold        =   0   'False
  938.             FontItalic      =   0   'False
  939.             FontName        =   "MS Sans Serif"
  940.             FontSize        =   8.25
  941.             FontStrikethru  =   0   'False
  942.             FontUnderline   =   0   'False
  943.             ForeColor       =   &H00FF0000&
  944.             Height          =   195
  945.             Index           =   1
  946.             Left            =   105
  947.             TabIndex        =   45
  948.             Top             =   480
  949.             Width           =   1100
  950.          End
  951.       End
  952.    End
  953.    Begin LED LED1 
  954.       AutoRedraw      =   -1  'True
  955.       AutoSize        =   0  ' 0 - None
  956.       AVersion        =   2.5
  957.       BackColor       =   &H00C0C0C0&
  958.       BevelInner      =   2  ' 2 - Inset
  959.       BevelOuter      =   1  ' 1 - Raised
  960.       BevelWidth      =   2
  961.       BorderHorizontal=   2
  962.       BorderVertical  =   4
  963.       BorderWidth     =   6
  964.       DecayRate       =   0
  965.       Direction       =   0  ' 0 - Forward
  966.       Height          =   855
  967.       LEDHeight       =   30
  968.       LEDIndex        =   0
  969.       LEDSep          =   2
  970.       LEDStyle        =   2  ' 2 - Bitmap
  971.       LEDWidth        =   23
  972.       Left            =   120
  973.       MaxDecay        =   0   'False
  974.       Mode            =   0  ' 0 - Value
  975.       MouseControl    =   -1  'True
  976.       NumLEDs         =   15
  977.       OffPictureGreen =   LEDCONTR.FRX:0000
  978.       OffPictureRed   =   LEDCONTR.FRX:0332
  979.       OffPictureYellow=   LEDCONTR.FRX:04FC
  980.       OnPictureGreen  =   LEDCONTR.FRX:06C6
  981.       OnPictureRed    =   LEDCONTR.FRX:0890
  982.       OnPictureYellow =   LEDCONTR.FRX:0A5A
  983.       Orientation     =   0  ' 0 - Horizontal
  984.       TabIndex        =   0
  985.       Top             =   300
  986.       Value           =   15
  987.       Width           =   5970
  988.       ZLoad           =   LEDCONTR.FRX:0C24
  989.    End
  990.    Begin Label Label3 
  991.       BackStyle       =   0  'Transparent
  992.       Caption         =   "Click on the LEDs to change the control's value."
  993.       Height          =   255
  994.       Left            =   660
  995.       TabIndex        =   28
  996.       Top             =   60
  997.       Width           =   4575
  998.    End
  999. Sub Check1_Click ()
  1000.     led1.MouseControl = -check1
  1001. End Sub
  1002. Sub Form_Load ()
  1003.     hscroll1(0) = led1.BorderHorizontal
  1004.     hscroll1(1) = led1.BorderVertical
  1005.     hscroll1(2) = led1.LEDHeight
  1006.     hscroll1(3) = led1.LEDSep
  1007.     hscroll1(4) = led1.LEDWidth
  1008.     hscroll1(5) = led1.NumLEDs
  1009.     hscroll1(6) = led1.BevelWidth
  1010.     hscroll1(7) = led1.BorderWidth
  1011.     hscroll1(8) = led1.Value
  1012.     hscroll1(9) = led1.Height
  1013.     hscroll1(10) = led1.Width
  1014. End Sub
  1015. Sub HScroll1_Change (index As Integer)
  1016.     i = index
  1017.     Select Case i
  1018.         Case 0 'BorderHorizontal
  1019.             led1.BorderHorizontal = hscroll1(i)
  1020.         Case 1 'BorderVertical
  1021.             led1.BorderVertical = hscroll1(i)
  1022.         Case 2 'LEDHeight
  1023.             led1.LEDHeight = hscroll1(i)
  1024.         Case 3 'LEDSep
  1025.             led1.LEDSep = hscroll1(i)
  1026.         Case 4 'LEDWidth
  1027.             led1.LEDWidth = hscroll1(i)
  1028.         Case 5 'NumLEDs
  1029.             led1.NumLEDs = hscroll1(i)
  1030.         Case 6 'BevelWidth
  1031.             led1.BevelWidth = hscroll1(i)
  1032.         Case 7 'BorderWidth
  1033.             led1.BorderWidth = hscroll1(i)
  1034.         Case 8 'Value
  1035.             led1.Value = hscroll1(i)
  1036.         Case 9 'Height
  1037.             led1.Height = hscroll1(i)
  1038.         Case 10 'Width
  1039.             led1.Width = hscroll1(i)
  1040.     End Select
  1041.     label2(i) = hscroll1(i)
  1042.     update_page
  1043. End Sub
  1044. Sub HScroll1_Scroll (index As Integer)
  1045.     i = index
  1046.     Select Case i
  1047.         Case 0 'BorderHorizontal
  1048.             led1.BorderHorizontal = hscroll1(i)
  1049.         Case 1 'BorderVertical
  1050.             led1.BorderVertical = hscroll1(i)
  1051.         Case 2 'LEDHeight
  1052.             led1.LEDHeight = hscroll1(i)
  1053.         Case 3 'LEDSep
  1054.             led1.LEDSep = hscroll1(i)
  1055.         Case 4 'LEDWidth
  1056.             led1.LEDWidth = hscroll1(i)
  1057.         Case 5 'NumLEDs
  1058.             led1.NumLEDs = hscroll1(i)
  1059.         Case 6 'BevelWidth
  1060.             led1.BevelWidth = hscroll1(i)
  1061.         Case 7 'BorderWidth
  1062.             led1.BorderWidth = hscroll1(i)
  1063.         Case 8 'Value
  1064.             led1.Value = hscroll1(i)
  1065.         Case 9 'Height
  1066.             led1.Height = hscroll1(i)
  1067.         Case 10 'Width
  1068.             led1.Width = hscroll1(i)
  1069.     End Select
  1070.     label2(i) = hscroll1(i)
  1071.     update_page
  1072. End Sub
  1073. Sub LED1_Click ()
  1074.     If led1.Mode = 0 Then 'Value
  1075.             hscroll1(8) = led1.Value
  1076.     Else  'Bitwise
  1077.         If led1.NumLEDs < 15 Then
  1078.             hscroll1(8) = led1.Value
  1079.         Else
  1080.             hscroll1(8) = hscroll1(8).Max
  1081.             label2(8) = Str(led1.Value)
  1082.         End If
  1083.     End If
  1084. End Sub
  1085. Sub Option1_Click (index As Integer)
  1086.     led1.LEDStyle = index
  1087. End Sub
  1088. Sub Option2_Click (index As Integer)
  1089.     led1.Mode = index
  1090.     If led1.Mode = 0 Then 'Value
  1091.             hscroll1(8).Max = led1.NumLEDs
  1092.     Else  'Bitwise
  1093.         If led1.NumLEDs < 15 Then
  1094.             hscroll1(8).Max = 2 ^ (led1.NumLEDs - 1) + 1
  1095.         Else
  1096.             hscroll1(8).Max = 2 ^ 14 + 1
  1097.         End If
  1098.     End If
  1099. End Sub
  1100. Sub Option3_Click (index As Integer)
  1101.     led1.Direction = index
  1102. End Sub
  1103. Sub Option4_Click (index As Integer)
  1104.     old = led1.Orientation
  1105.     led1.Orientation = index
  1106.     If led1.Orientation <> old Then
  1107.         oldwidth = led1.Width
  1108.         led1.Width = led1.Height
  1109.         led1.Height = oldwidth
  1110.     End If
  1111.     hscroll1(9) = led1.Height
  1112.     hscroll1(10) = led1.Width
  1113. End Sub
  1114. Sub Option5_Click (index As Integer)
  1115.     led1.AutoSize = index
  1116.     DoEvents
  1117.     If index = 0 Then
  1118.         hscroll1(2).Visible = True
  1119.         label2(2).Visible = True
  1120.         hscroll1(4).Visible = True
  1121.         label2(4).Visible = True
  1122.         hscroll1(9).Visible = True
  1123.         label2(9).Visible = True
  1124.         hscroll1(10).Visible = True
  1125.         label2(10).Visible = True
  1126.     End If
  1127.     If index = 1 Then
  1128.         hscroll1(2).Visible = True
  1129.         label2(2).Visible = True
  1130.         hscroll1(4).Visible = True
  1131.         label2(4).Visible = True
  1132.         hscroll1(9).Visible = False
  1133.         label2(9).Visible = False
  1134.         hscroll1(10).Visible = False
  1135.         label2(10).Visible = False
  1136.         If led1.LEDHeight <= hscroll1(2).Max Then
  1137.             hscroll1(2) = led1.LEDHeight
  1138.         Else
  1139.             led1.LEDHeight = hscroll1(2).Max
  1140.         End If
  1141.         If led1.LEDWidth <= hscroll1(4).Max Then
  1142.             hscroll1(4) = led1.LEDWidth
  1143.         Else
  1144.             led1.LEDWidth = hscroll1(4).Max
  1145.         End If
  1146.     ElseIf index = 2 Then
  1147.         hscroll1(2).Visible = False
  1148.         label2(2).Visible = False
  1149.         hscroll1(4).Visible = False
  1150.         label2(4).Visible = False
  1151.         hscroll1(9).Visible = True
  1152.         label2(9).Visible = True
  1153.         hscroll1(10).Visible = True
  1154.         label2(10).Visible = True
  1155.         If led1.Height <= hscroll1(9).Max Then
  1156.             hscroll1(9) = led1.Height
  1157.         Else
  1158.             led1.Height = hscroll1(9).Max
  1159.         End If
  1160.         If led1.Width <= hscroll1(10).Max Then
  1161.             hscroll1(10) = led1.Width
  1162.         Else
  1163.             led1.Width = hscroll1(10).Max
  1164.         End If
  1165.     End If
  1166. End Sub
  1167. Sub Option6_Click (index As Integer)
  1168.     led1.BevelInner = index
  1169. End Sub
  1170. Sub Option7_Click (index As Integer)
  1171.     led1.BevelOuter = index
  1172. End Sub
  1173. Sub update_page ()
  1174.     'hscroll1(0) BorderHorizontal
  1175.     If led1.BorderHorizontal >= hscroll1(0).Min And led1.BorderHorizontal <= hscroll1(0).Max Then
  1176.         hscroll1(0) = led1.BorderHorizontal
  1177.     ElseIf led1.BorderHorizontal < hscroll1(0).Min Then
  1178.         hscroll1(0) = hscroll1(0).Min
  1179.     Else
  1180.         hscroll1(0) = hscroll1(0).Max
  1181.     End If
  1182.     'hscroll1(1) BorderVertical
  1183.     If led1.BorderVertical >= hscroll1(1).Min And led1.BorderVertical <= hscroll1(1).Max Then
  1184.         hscroll1(1) = led1.BorderVertical
  1185.     ElseIf led1.BorderVertical < hscroll1(1).Min Then
  1186.         hscroll1(1) = hscroll1(1).Min
  1187.     Else
  1188.         hscroll1(1) = hscroll1(1).Max
  1189.     End If
  1190.     'hscroll1(2) LEDHeight
  1191.     If led1.LEDHeight >= hscroll1(2).Min And led1.LEDHeight <= hscroll1(2).Max Then
  1192.         hscroll1(2) = led1.LEDHeight
  1193.     ElseIf led1.LEDHeight < hscroll1(2).Min Then
  1194.         hscroll1(2) = hscroll1(2).Min
  1195.     Else
  1196.         hscroll1(2) = hscroll1(2).Max
  1197.     End If
  1198.     'hscroll1(3) LEDSep
  1199.     If led1.LEDSep >= hscroll1(3).Min And led1.LEDSep <= hscroll1(3).Max Then
  1200.         hscroll1(3) = led1.LEDSep
  1201.     ElseIf led1.LEDSep < hscroll1(3).Min Then
  1202.         hscroll1(3) = hscroll1(3).Min
  1203.     Else
  1204.         hscroll1(3) = hscroll1(3).Max
  1205.     End If
  1206.     'hscroll1(4) LEDWidth
  1207.     If led1.LEDWidth >= hscroll1(4).Min And led1.LEDWidth <= hscroll1(4).Max Then
  1208.         hscroll1(4) = led1.LEDWidth
  1209.     ElseIf led1.LEDWidth < hscroll1(4).Min Then
  1210.         hscroll1(4) = hscroll1(4).Min
  1211.     Else
  1212.         hscroll1(4) = hscroll1(4).Max
  1213.     End If
  1214.     'hscroll1(5) NumLEDs
  1215.     If led1.NumLEDs >= hscroll1(5).Min And led1.NumLEDs <= hscroll1(5).Max Then
  1216.         hscroll1(5) = led1.NumLEDs
  1217.     ElseIf led1.NumLEDs < hscroll1(5).Min Then
  1218.         hscroll1(5) = hscroll1(5).Min
  1219.     Else
  1220.         hscroll1(5) = hscroll1(5).Max
  1221.     End If
  1222.     'hscroll1(6) BevelWidth
  1223.     If led1.BevelWidth >= hscroll1(6).Min And led1.BevelWidth <= hscroll1(6).Max Then
  1224.         hscroll1(6) = led1.BevelWidth
  1225.     ElseIf led1.BevelWidth < hscroll1(6).Min Then
  1226.         hscroll1(6) = hscroll1(6).Min
  1227.     Else
  1228.         hscroll1(6) = hscroll1(6).Max
  1229.     End If
  1230.     'hscroll1(7) BorderWidth
  1231.     If led1.BorderWidth >= hscroll1(7).Min And led1.BorderWidth <= hscroll1(7).Max Then
  1232.         hscroll1(7) = led1.BorderWidth
  1233.     ElseIf led1.BorderWidth < hscroll1(7).Min Then
  1234.         hscroll1(7) = hscroll1(7).Min
  1235.     Else
  1236.         hscroll1(7) = hscroll1(7).Max
  1237.     End If
  1238.     'hscroll1(8) Value
  1239.     If led1.Value >= hscroll1(8).Min And led1.Value <= hscroll1(8).Max Then
  1240.         hscroll1(8) = led1.Value
  1241.     ElseIf led1.Value < hscroll1(8).Min Then
  1242.         hscroll1(8) = hscroll1(8).Min
  1243.     Else
  1244.         hscroll1(8) = hscroll1(8).Max
  1245.     End If
  1246.     'hscroll1(9) Height
  1247.     If led1.Height >= hscroll1(9).Min And led1.Height <= hscroll1(9).Max Then
  1248.         hscroll1(9) = led1.Height
  1249.     ElseIf led1.Height < hscroll1(9).Min Then
  1250.         hscroll1(9) = hscroll1(9).Min
  1251.     Else
  1252.         hscroll1(9) = hscroll1(9).Max
  1253.     End If
  1254.     'hscroll1(10) Width
  1255.     If led1.Width >= hscroll1(10).Min And led1.Width <= hscroll1(10).Max Then
  1256.         hscroll1(10) = led1.Width
  1257.     ElseIf led1.Width < hscroll1(10).Min Then
  1258.         hscroll1(10) = hscroll1(10).Min
  1259.     Else
  1260.         hscroll1(10) = hscroll1(10).Max
  1261.     End If
  1262.     For i = 0 To 10
  1263.         label2(i) = hscroll1(i)
  1264.     Next i
  1265. End Sub
  1266.