home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 4 Power Pack / Visual_Basic4_Power_Pack.bin / vb4files / knob_vb4 / form1.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-11-20  |  14.2 KB  |  469 lines

  1. VERSION 4.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   4320
  5.    ClientLeft      =   2145
  6.    ClientTop       =   1860
  7.    ClientWidth     =   5625
  8.    Height          =   4725
  9.    Left            =   2085
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   4320
  12.    ScaleWidth      =   5625
  13.    Top             =   1515
  14.    Width           =   5745
  15.    Begin VB.HScrollBar HScroll1 
  16.       Height          =   255
  17.       Left            =   120
  18.       Max             =   100
  19.       TabIndex        =   0
  20.       Top             =   1440
  21.       Value           =   50
  22.       Width           =   3495
  23.    End
  24.    Begin Threed.SSPanel SSPanel1 
  25.       Height          =   975
  26.       Left            =   120
  27.       TabIndex        =   3
  28.       Top             =   360
  29.       Width           =   3495
  30.       _version        =   65536
  31.       _extentx        =   6165
  32.       _extenty        =   1720
  33.       _stockprops     =   15
  34.       backcolor       =   12632256
  35.       bevelwidth      =   2
  36.       bevelinner      =   1
  37.       Begin KnobLib.Knob Knob1 
  38.          Height          =   735
  39.          Index           =   3
  40.          Left            =   2640
  41.          TabIndex        =   7
  42.          Top             =   120
  43.          Width           =   735
  44.          _version        =   65536
  45.          _extentx        =   1296
  46.          _extenty        =   1296
  47.          _stockprops     =   1
  48.          bordercolor     =   0
  49.          min             =   0
  50.          max             =   100
  51.          pos             =   50
  52.          outerbevel      =   1
  53.          innerbevel      =   0
  54.          outerbevelwidth =   2
  55.          innerbevelwidth =   2
  56.          borderwidth     =   3
  57.          shadowcolor     =   8421504
  58.          hilitecolor     =   16777215
  59.          orientation     =   3
  60.          facecolor       =   16777215
  61.       End
  62.       Begin KnobLib.Knob Knob1 
  63.          Height          =   735
  64.          Index           =   2
  65.          Left            =   1800
  66.          TabIndex        =   6
  67.          Top             =   120
  68.          Width           =   735
  69.          _version        =   65536
  70.          _extentx        =   1296
  71.          _extenty        =   1296
  72.          _stockprops     =   1
  73.          bordercolor     =   0
  74.          min             =   0
  75.          max             =   100
  76.          pos             =   50
  77.          outerbevel      =   1
  78.          innerbevel      =   0
  79.          outerbevelwidth =   2
  80.          innerbevelwidth =   2
  81.          borderwidth     =   3
  82.          shadowcolor     =   8421504
  83.          hilitecolor     =   16777215
  84.          orientation     =   3
  85.          facecolor       =   16777215
  86.       End
  87.       Begin KnobLib.Knob Knob1 
  88.          Height          =   735
  89.          Index           =   1
  90.          Left            =   960
  91.          TabIndex        =   5
  92.          Top             =   120
  93.          Width           =   735
  94.          _version        =   65536
  95.          _extentx        =   1296
  96.          _extenty        =   1296
  97.          _stockprops     =   1
  98.          bordercolor     =   0
  99.          min             =   0
  100.          max             =   100
  101.          pos             =   50
  102.          outerbevel      =   1
  103.          innerbevel      =   0
  104.          outerbevelwidth =   2
  105.          innerbevelwidth =   2
  106.          borderwidth     =   3
  107.          shadowcolor     =   8421504
  108.          hilitecolor     =   16777215
  109.          orientation     =   3
  110.          facecolor       =   16777215
  111.       End
  112.       Begin KnobLib.Knob Knob1 
  113.          Height          =   735
  114.          Index           =   0
  115.          Left            =   120
  116.          TabIndex        =   4
  117.          Top             =   120
  118.          Width           =   735
  119.          _version        =   65536
  120.          _extentx        =   1296
  121.          _extenty        =   1296
  122.          _stockprops     =   1
  123.          bordercolor     =   0
  124.          min             =   0
  125.          max             =   100
  126.          pos             =   50
  127.          outerbevel      =   1
  128.          innerbevel      =   0
  129.          outerbevelwidth =   2
  130.          innerbevelwidth =   2
  131.          borderwidth     =   3
  132.          shadowcolor     =   8421504
  133.          hilitecolor     =   16777215
  134.          orientation     =   3
  135.          facecolor       =   16777215
  136.       End
  137.    End
  138.    Begin Threed.SSPanel SSPanel2 
  139.       Height          =   1335
  140.       Left            =   3840
  141.       TabIndex        =   17
  142.       Top             =   2520
  143.       Width           =   1455
  144.       _version        =   65536
  145.       _extentx        =   2566
  146.       _extenty        =   2355
  147.       _stockprops     =   15
  148.       backcolor       =   192
  149.       bevelwidth      =   2
  150.       bevelinner      =   1
  151.       Begin KnobLib.Knob Knob14 
  152.          Height          =   495
  153.          Left            =   840
  154.          TabIndex        =   21
  155.          Top             =   720
  156.          Width           =   495
  157.          _version        =   65536
  158.          _extentx        =   873
  159.          _extenty        =   873
  160.          _stockprops     =   1
  161.          backcolor       =   192
  162.          needlecolor     =   16777215
  163.          bordercolor     =   0
  164.          min             =   0
  165.          max             =   100
  166.          pos             =   50
  167.          outerbevel      =   1
  168.          innerbevel      =   1
  169.          outerbevelwidth =   0
  170.          innerbevelwidth =   1
  171.          borderwidth     =   1
  172.          shadowcolor     =   8421504
  173.          hilitecolor     =   16777215
  174.          orientation     =   3
  175.          facecolor       =   4210752
  176.       End
  177.       Begin KnobLib.Knob Knob13 
  178.          Height          =   495
  179.          Left            =   120
  180.          TabIndex        =   20
  181.          Top             =   720
  182.          Width           =   495
  183.          _version        =   65536
  184.          _extentx        =   873
  185.          _extenty        =   873
  186.          _stockprops     =   1
  187.          backcolor       =   192
  188.          needlecolor     =   16777215
  189.          bordercolor     =   0
  190.          min             =   0
  191.          max             =   100
  192.          pos             =   50
  193.          outerbevel      =   1
  194.          innerbevel      =   1
  195.          outerbevelwidth =   0
  196.          innerbevelwidth =   1
  197.          borderwidth     =   1
  198.          shadowcolor     =   8421504
  199.          hilitecolor     =   16777215
  200.          orientation     =   3
  201.          facecolor       =   4210752
  202.       End
  203.       Begin KnobLib.Knob Knob12 
  204.          Height          =   495
  205.          Left            =   840
  206.          TabIndex        =   19
  207.          Top             =   120
  208.          Width           =   495
  209.          _version        =   65536
  210.          _extentx        =   873
  211.          _extenty        =   873
  212.          _stockprops     =   1
  213.          backcolor       =   192
  214.          needlecolor     =   16777215
  215.          bordercolor     =   0
  216.          min             =   0
  217.          max             =   100
  218.          pos             =   50
  219.          outerbevel      =   1
  220.          innerbevel      =   1
  221.          outerbevelwidth =   0
  222.          innerbevelwidth =   2
  223.          borderwidth     =   0
  224.          shadowcolor     =   8421504
  225.          hilitecolor     =   16777215
  226.          orientation     =   3
  227.          facecolor       =   0
  228.       End
  229.       Begin KnobLib.Knob Knob11 
  230.          Height          =   495
  231.          Left            =   120
  232.          TabIndex        =   18
  233.          Top             =   120
  234.          Width           =   495
  235.          _version        =   65536
  236.          _extentx        =   873
  237.          _extenty        =   873
  238.          _stockprops     =   1
  239.          backcolor       =   192
  240.          needlecolor     =   16777215
  241.          bordercolor     =   0
  242.          min             =   0
  243.          max             =   100
  244.          pos             =   50
  245.          outerbevel      =   1
  246.          innerbevel      =   1
  247.          outerbevelwidth =   0
  248.          innerbevelwidth =   2
  249.          borderwidth     =   0
  250.          shadowcolor     =   8421504
  251.          hilitecolor     =   16777215
  252.          orientation     =   3
  253.          facecolor       =   0
  254.       End
  255.    End
  256.    Begin VB.Label Label5 
  257.       BackColor       =   &H0080FFFF&
  258.       Caption         =   $"FORM1.frx":0000
  259.       Height          =   495
  260.       Left            =   360
  261.       TabIndex        =   16
  262.       Top             =   3600
  263.       Width           =   3135
  264.    End
  265.    Begin VB.Label Label4 
  266.       BackColor       =   &H0080FFFF&
  267.       Caption         =   $"FORM1.frx":0050
  268.       Height          =   615
  269.       Left            =   360
  270.       TabIndex        =   15
  271.       Top             =   2880
  272.       Width           =   3135
  273.    End
  274.    Begin VB.Label Label3 
  275.       BackColor       =   &H0080FFFF&
  276.       Caption         =   $"FORM1.frx":00B4
  277.       Height          =   495
  278.       Left            =   360
  279.       TabIndex        =   14
  280.       Top             =   2280
  281.       Width           =   3135
  282.    End
  283.    Begin KnobLib.Knob Knob6 
  284.       Height          =   495
  285.       Left            =   4560
  286.       TabIndex        =   13
  287.       Top             =   1920
  288.       Width           =   495
  289.       _version        =   65536
  290.       _extentx        =   873
  291.       _extenty        =   873
  292.       _stockprops     =   1
  293.       bordercolor     =   0
  294.       min             =   0
  295.       max             =   100
  296.       pos             =   50
  297.       outerbevel      =   1
  298.       innerbevel      =   0
  299.       outerbevelwidth =   2
  300.       innerbevelwidth =   2
  301.       borderwidth     =   1
  302.       shadowcolor     =   8421504
  303.       hilitecolor     =   16777215
  304.       orientation     =   3
  305.       facecolor       =   16777215
  306.    End
  307.    Begin KnobLib.Knob Knob5 
  308.       Height          =   495
  309.       Left            =   3960
  310.       TabIndex        =   12
  311.       Top             =   1920
  312.       Width           =   495
  313.       _version        =   65536
  314.       _extentx        =   873
  315.       _extenty        =   873
  316.       _stockprops     =   1
  317.       bordercolor     =   0
  318.       min             =   0
  319.       max             =   100
  320.       pos             =   50
  321.       outerbevel      =   1
  322.       innerbevel      =   0
  323.       outerbevelwidth =   2
  324.       innerbevelwidth =   2
  325.       borderwidth     =   1
  326.       shadowcolor     =   8421504
  327.       hilitecolor     =   16777215
  328.       orientation     =   3
  329.       facecolor       =   16777215
  330.    End
  331.    Begin KnobLib.Knob Knob2 
  332.       Height          =   615
  333.       Index           =   1
  334.       Left            =   4680
  335.       TabIndex        =   11
  336.       Top             =   1200
  337.       Width           =   615
  338.       _version        =   65536
  339.       _extentx        =   1085
  340.       _extenty        =   1085
  341.       _stockprops     =   1
  342.       needlecolor     =   0
  343.       bordercolor     =   0
  344.       min             =   0
  345.       max             =   100
  346.       pos             =   50
  347.       outerbevel      =   1
  348.       innerbevel      =   0
  349.       outerbevelwidth =   0
  350.       innerbevelwidth =   2
  351.       borderwidth     =   0
  352.       shadowcolor     =   8421504
  353.       hilitecolor     =   16777215
  354.       orientation     =   2
  355.       facecolor       =   12632256
  356.    End
  357.    Begin KnobLib.Knob Knob4 
  358.       Height          =   615
  359.       Left            =   3960
  360.       TabIndex        =   10
  361.       Top             =   1200
  362.       Width           =   615
  363.       _version        =   65536
  364.       _extentx        =   1085
  365.       _extenty        =   1085
  366.       _stockprops     =   1
  367.       needlecolor     =   0
  368.       bordercolor     =   0
  369.       min             =   0
  370.       max             =   100
  371.       pos             =   50
  372.       outerbevel      =   1
  373.       innerbevel      =   0
  374.       outerbevelwidth =   0
  375.       innerbevelwidth =   2
  376.       borderwidth     =   0
  377.       shadowcolor     =   8421504
  378.       hilitecolor     =   16777215
  379.       orientation     =   1
  380.       facecolor       =   12632256
  381.    End
  382.    Begin KnobLib.Knob Knob3 
  383.       Height          =   615
  384.       Left            =   4680
  385.       TabIndex        =   9
  386.       Top             =   480
  387.       Width           =   615
  388.       _version        =   65536
  389.       _extentx        =   1085
  390.       _extenty        =   1085
  391.       _stockprops     =   1
  392.       needlecolor     =   0
  393.       bordercolor     =   0
  394.       min             =   0
  395.       max             =   100
  396.       pos             =   50
  397.       outerbevel      =   1
  398.       innerbevel      =   0
  399.       outerbevelwidth =   0
  400.       innerbevelwidth =   2
  401.       borderwidth     =   0
  402.       shadowcolor     =   8421504
  403.       hilitecolor     =   16777215
  404.       orientation     =   0
  405.       facecolor       =   12632256
  406.    End
  407.    Begin KnobLib.Knob Knob2 
  408.       Height          =   615
  409.       Index           =   0
  410.       Left            =   3960
  411.       TabIndex        =   8
  412.       Top             =   480
  413.       Width           =   615
  414.       _version        =   65536
  415.       _extentx        =   1085
  416.       _extenty        =   1085
  417.       _stockprops     =   1
  418.       needlecolor     =   0
  419.       bordercolor     =   0
  420.       min             =   0
  421.       max             =   100
  422.       pos             =   50
  423.       outerbevel      =   1
  424.       innerbevel      =   0
  425.       outerbevelwidth =   0
  426.       innerbevelwidth =   2
  427.       borderwidth     =   0
  428.       shadowcolor     =   8421504
  429.       hilitecolor     =   16777215
  430.       orientation     =   3
  431.       facecolor       =   12632256
  432.    End
  433.    Begin VB.Label Label2 
  434.       Caption         =   "Position"
  435.       Height          =   255
  436.       Left            =   240
  437.       TabIndex        =   2
  438.       Top             =   1800
  439.       Width           =   735
  440.    End
  441.    Begin VB.Label Label1 
  442.       Caption         =   "50"
  443.       Height          =   255
  444.       Left            =   960
  445.       TabIndex        =   1
  446.       Top             =   1800
  447.       Width           =   735
  448.    End
  449. Attribute VB_Name = "Form1"
  450. Attribute VB_Creatable = False
  451. Attribute VB_Exposed = False
  452. Private Sub HScroll1_Change()
  453. For a = 0 To 3
  454. Knob1(a).Pos = HScroll1.Value
  455. End Sub
  456. Private Sub HScroll1_Scroll()
  457. For a = 0 To 3
  458. Knob1(a).Pos = HScroll1.Value
  459. End Sub
  460. Private Sub Text1_Change()
  461. Knob3.Pos = Val(Text1.Text)
  462. End Sub
  463. Private Sub Knob3_ValueChanged(Pos As Integer)
  464. Label1.Caption = Val(Pos)
  465. End Sub
  466. Private Sub Knob1_ValueChanged(Index As Integer, Pos As Integer)
  467. Label1.Caption = Str(Pos)
  468. End Sub
  469.