home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 5 / MasteringVisualBasic5.iso / ch_code / ch15 / sirals / form11.dob (.txt) next >
Encoding:
Visual Basic Form  |  1997-02-20  |  13.7 KB  |  460 lines

  1. VERSION 5.00
  2. Begin VB.UserDocument  Form11
  3.    ClientHeight    =   6645
  4.    ClientLeft      =   2100
  5.    ClientTop       =   945
  6.    ClientWidth     =   7440
  7.    PaletteMode     =   1  'UseZOrder
  8.    ScaleHeight     =   6645
  9.    ScaleWidth      =   7440
  10.    Begin VB.Frame Frame1 
  11.       Caption         =   "Pen Width"
  12.       BeginProperty Font 
  13.          Name            =   "Times New Roman"
  14.          Size            =   9.75
  15.          Charset         =   0
  16.          Weight          =   400
  17.          Underline       =   0   'False
  18.          Italic          =   0   'False
  19.          Strikethrough   =   0   'False
  20.       EndProperty
  21.       Height          =   1140
  22.       Left            =   5625
  23.       TabIndex        =   28
  24.       Top             =   5295
  25.       Width           =   1635
  26.       Begin VB.OptionButton WOption 
  27.          Height          =   195
  28.          Index           =   1
  29.          Left            =   150
  30.          Style           =   1  'Graphical
  31.          TabIndex        =   31
  32.          Top             =   300
  33.          Value           =   -1  'True
  34.          Width           =   210
  35.       End
  36.       Begin VB.OptionButton WOption 
  37.          Height          =   195
  38.          Index           =   2
  39.          Left            =   150
  40.          Style           =   1  'Graphical
  41.          TabIndex        =   30
  42.          Top             =   570
  43.          Width           =   210
  44.       End
  45.       Begin VB.OptionButton WOption 
  46.          Height          =   195
  47.          Index           =   3
  48.          Left            =   150
  49.          Style           =   1  'Graphical
  50.          TabIndex        =   29
  51.          Top             =   840
  52.          Width           =   225
  53.       End
  54.       Begin VB.Line Line1 
  55.          X1              =   540
  56.          X2              =   1455
  57.          Y1              =   390
  58.          Y2              =   390
  59.       End
  60.       Begin VB.Line Line2 
  61.          BorderWidth     =   2
  62.          X1              =   1455
  63.          X2              =   540
  64.          Y1              =   660
  65.          Y2              =   675
  66.       End
  67.       Begin VB.Line Line3 
  68.          BorderWidth     =   3
  69.          X1              =   1425
  70.          X2              =   540
  71.          Y1              =   930
  72.          Y2              =   930
  73.       End
  74.    End
  75.    Begin VB.PictureBox CPicture 
  76.       BackColor       =   &H000000FF&
  77.       Height          =   225
  78.       Index           =   0
  79.       Left            =   6000
  80.       ScaleHeight     =   165
  81.       ScaleWidth      =   1080
  82.       TabIndex        =   27
  83.       Top             =   1590
  84.       Width           =   1140
  85.    End
  86.    Begin VB.OptionButton Option 
  87.       Height          =   255
  88.       Index           =   0
  89.       Left            =   5745
  90.       Style           =   1  'Graphical
  91.       TabIndex        =   26
  92.       Top             =   1575
  93.       Width           =   225
  94.    End
  95.    Begin VB.PictureBox CPicture 
  96.       BackColor       =   &H000000C0&
  97.       Height          =   225
  98.       Index           =   1
  99.       Left            =   6000
  100.       ScaleHeight     =   165
  101.       ScaleWidth      =   1080
  102.       TabIndex        =   25
  103.       Top             =   1995
  104.       Width           =   1140
  105.    End
  106.    Begin VB.OptionButton Option 
  107.       Height          =   255
  108.       Index           =   1
  109.       Left            =   5745
  110.       Style           =   1  'Graphical
  111.       TabIndex        =   24
  112.       Top             =   1935
  113.       Width           =   225
  114.    End
  115.    Begin VB.PictureBox CPicture 
  116.       BackColor       =   &H0000FFFF&
  117.       Height          =   225
  118.       Index           =   2
  119.       Left            =   6000
  120.       ScaleHeight     =   165
  121.       ScaleWidth      =   1080
  122.       TabIndex        =   23
  123.       Top             =   2385
  124.       Width           =   1140
  125.    End
  126.    Begin VB.OptionButton Option 
  127.       Height          =   255
  128.       Index           =   2
  129.       Left            =   5745
  130.       Style           =   1  'Graphical
  131.       TabIndex        =   22
  132.       Top             =   2370
  133.       Width           =   225
  134.    End
  135.    Begin VB.PictureBox CPicture 
  136.       BackColor       =   &H0000FF00&
  137.       Height          =   225
  138.       Index           =   3
  139.       Left            =   6000
  140.       ScaleHeight     =   165
  141.       ScaleWidth      =   1080
  142.       TabIndex        =   21
  143.       Top             =   2790
  144.       Width           =   1140
  145.    End
  146.    Begin VB.OptionButton Option 
  147.       Height          =   255
  148.       Index           =   3
  149.       Left            =   5745
  150.       Style           =   1  'Graphical
  151.       TabIndex        =   20
  152.       Top             =   2775
  153.       Width           =   225
  154.    End
  155.    Begin VB.PictureBox CPicture 
  156.       BackColor       =   &H00FFFF00&
  157.       Height          =   225
  158.       Index           =   4
  159.       Left            =   6000
  160.       ScaleHeight     =   165
  161.       ScaleWidth      =   1080
  162.       TabIndex        =   19
  163.       Top             =   3180
  164.       Width           =   1140
  165.    End
  166.    Begin VB.OptionButton Option 
  167.       Height          =   255
  168.       Index           =   4
  169.       Left            =   5745
  170.       Style           =   1  'Graphical
  171.       TabIndex        =   18
  172.       Top             =   3165
  173.       Width           =   225
  174.    End
  175.    Begin VB.PictureBox CPicture 
  176.       BackColor       =   &H00FF0000&
  177.       Height          =   225
  178.       Index           =   5
  179.       Left            =   6000
  180.       ScaleHeight     =   165
  181.       ScaleWidth      =   1080
  182.       TabIndex        =   17
  183.       Top             =   3585
  184.       Width           =   1140
  185.    End
  186.    Begin VB.OptionButton Option 
  187.       Height          =   255
  188.       Index           =   5
  189.       Left            =   5745
  190.       Style           =   1  'Graphical
  191.       TabIndex        =   16
  192.       Top             =   3570
  193.       Width           =   225
  194.    End
  195.    Begin VB.PictureBox CPicture 
  196.       BackColor       =   &H00FF00FF&
  197.       Height          =   225
  198.       Index           =   6
  199.       Left            =   6015
  200.       ScaleHeight     =   165
  201.       ScaleWidth      =   1080
  202.       TabIndex        =   15
  203.       Top             =   3990
  204.       Width           =   1140
  205.    End
  206.    Begin VB.OptionButton Option 
  207.       Height          =   255
  208.       Index           =   6
  209.       Left            =   5745
  210.       Style           =   1  'Graphical
  211.       TabIndex        =   14
  212.       Top             =   3975
  213.       Width           =   225
  214.    End
  215.    Begin VB.PictureBox CPicture 
  216.       BackColor       =   &H00000000&
  217.       Height          =   225
  218.       Index           =   7
  219.       Left            =   6030
  220.       ScaleHeight     =   165
  221.       ScaleWidth      =   1080
  222.       TabIndex        =   13
  223.       Top             =   4380
  224.       Width           =   1140
  225.    End
  226.    Begin VB.OptionButton Option 
  227.       Height          =   255
  228.       Index           =   7
  229.       Left            =   5745
  230.       Style           =   1  'Graphical
  231.       TabIndex        =   12
  232.       Top             =   4365
  233.       Value           =   -1  'True
  234.       Width           =   225
  235.    End
  236.    Begin VB.PictureBox CPicture 
  237.       BackColor       =   &H00FFFFFF&
  238.       Height          =   225
  239.       Index           =   8
  240.       Left            =   6015
  241.       ScaleHeight     =   165
  242.       ScaleWidth      =   1080
  243.       TabIndex        =   11
  244.       Top             =   4785
  245.       Width           =   1140
  246.    End
  247.    Begin VB.OptionButton Option 
  248.       Height          =   255
  249.       Index           =   8
  250.       Left            =   5745
  251.       Style           =   1  'Graphical
  252.       TabIndex        =   10
  253.       Top             =   4770
  254.       Width           =   225
  255.    End
  256.    Begin VB.HScrollBar HScroll4 
  257.       Height          =   210
  258.       LargeChange     =   10
  259.       Left            =   2070
  260.       Max             =   40
  261.       TabIndex        =   9
  262.       Top             =   6255
  263.       Width           =   3345
  264.    End
  265.    Begin VB.CommandButton Command2 
  266.       Caption         =   "Clear Graph"
  267.       BeginProperty Font 
  268.          Name            =   "Times New Roman"
  269.          Size            =   12
  270.          Charset         =   0
  271.          Weight          =   400
  272.          Underline       =   0   'False
  273.          Italic          =   0   'False
  274.          Strikethrough   =   0   'False
  275.       EndProperty
  276.       Height          =   405
  277.       Left            =   5655
  278.       TabIndex        =   7
  279.       Top             =   675
  280.       Width           =   1575
  281.    End
  282.    Begin VB.HScrollBar HScroll3 
  283.       Height          =   240
  284.       Left            =   255
  285.       Max             =   20
  286.       Min             =   10
  287.       MousePointer    =   1  'Arrow
  288.       TabIndex        =   4
  289.       Top             =   8760
  290.       Value           =   20
  291.       Width           =   6210
  292.    End
  293.    Begin VB.HScrollBar HScroll2 
  294.       Height          =   210
  295.       LargeChange     =   10
  296.       Left            =   2070
  297.       Max             =   150
  298.       MousePointer    =   1  'Arrow
  299.       SmallChange     =   10
  300.       TabIndex        =   3
  301.       Top             =   5955
  302.       Value           =   100
  303.       Width           =   3345
  304.    End
  305.    Begin VB.HScrollBar HScroll1 
  306.       Height          =   210
  307.       LargeChange     =   10
  308.       Left            =   2070
  309.       Max             =   150
  310.       Min             =   50
  311.       SmallChange     =   10
  312.       TabIndex        =   2
  313.       Top             =   5625
  314.       Value           =   110
  315.       Width           =   3345
  316.    End
  317.    Begin VB.CommandButton Command1 
  318.       Caption         =   "Start"
  319.       BeginProperty Font 
  320.          Name            =   "Times New Roman"
  321.          Size            =   12
  322.          Charset         =   0
  323.          Weight          =   400
  324.          Underline       =   0   'False
  325.          Italic          =   0   'False
  326.          Strikethrough   =   0   'False
  327.       EndProperty
  328.       Height          =   405
  329.       Left            =   5655
  330.       TabIndex        =   1
  331.       Top             =   120
  332.       Width           =   1575
  333.    End
  334.    Begin VB.PictureBox Picture1 
  335.       BackColor       =   &H00808080&
  336.       FillStyle       =   0  'Solid
  337.       ForeColor       =   &H000000FF&
  338.       Height          =   5310
  339.       Left            =   100
  340.       ScaleHeight     =   350
  341.       ScaleMode       =   3  'Pixel
  342.       ScaleWidth      =   350
  343.       TabIndex        =   0
  344.       Top             =   135
  345.       Width           =   5310
  346.    End
  347.    Begin VB.Frame Frame2 
  348.       Caption         =   "Pen Color"
  349.       BeginProperty Font 
  350.          Name            =   "Times New Roman"
  351.          Size            =   9.75
  352.          Charset         =   0
  353.          Weight          =   400
  354.          Underline       =   0   'False
  355.          Italic          =   0   'False
  356.          Strikethrough   =   0   'False
  357.       EndProperty
  358.       Height          =   3960
  359.       Left            =   5610
  360.       TabIndex        =   32
  361.       Top             =   1200
  362.       Width           =   1620
  363.    End
  364.    Begin VB.Label Label3 
  365.       Caption         =   "Inner Offset"
  366.       BeginProperty Font 
  367.          Name            =   "Times New Roman"
  368.          Size            =   9.75
  369.          Charset         =   0
  370.          Weight          =   400
  371.          Underline       =   0   'False
  372.          Italic          =   0   'False
  373.          Strikethrough   =   0   'False
  374.       EndProperty
  375.       Height          =   225
  376.       Left            =   195
  377.       TabIndex        =   8
  378.       Top             =   6255
  379.       Width           =   1755
  380.    End
  381.    Begin VB.Label Label2 
  382.       Caption         =   "Inner Radius"
  383.       BeginProperty Font 
  384.          Name            =   "Times New Roman"
  385.          Size            =   9.75
  386.          Charset         =   0
  387.          Weight          =   400
  388.          Underline       =   0   'False
  389.          Italic          =   0   'False
  390.          Strikethrough   =   0   'False
  391.       EndProperty
  392.       Height          =   270
  393.       Left            =   195
  394.       TabIndex        =   6
  395.       Top             =   5925
  396.       Width           =   1785
  397.    End
  398.    Begin VB.Label Label1 
  399.       Caption         =   "Outer Radius"
  400.       BeginProperty Font 
  401.          Name            =   "Times New Roman"
  402.          Size            =   9.75
  403.          Charset         =   0
  404.          Weight          =   400
  405.          Underline       =   0   'False
  406.          Italic          =   0   'False
  407.          Strikethrough   =   0   'False
  408.       EndProperty
  409.       Height          =   270
  410.       Left            =   195
  411.       TabIndex        =   5
  412.       Top             =   5595
  413.       Width           =   1785
  414.    End
  415. Attribute VB_Name = "Form11"
  416. Attribute VB_GlobalNameSpace = False
  417. Attribute VB_Creatable = True
  418. Attribute VB_PredeclaredId = False
  419. Attribute VB_Exposed = True
  420. Private Sub Command1_Click()
  421. If Command1.Caption = "Stop" Then
  422.     BreakNow = True
  423.     Exit Sub
  424.     BreakNow = False
  425.     Command1.Caption = "Stop"
  426. End If
  427. DrawRoullette
  428. End Sub
  429. Private Sub Command2_Click()
  430.     Form1.Picture1.Cls
  431. End Sub
  432. Private Sub Form_Load()
  433.     PenColor = RGB(0, 0, 0)
  434.     HScroll1_Change
  435.     HScroll2_Change
  436.     HScroll4_Change
  437. End Sub
  438. Private Sub HScroll1_Change()
  439.     Label1.Caption = "Outer Radius  " & HScroll1.Value
  440. End Sub
  441. Private Sub HScroll1_Scroll()
  442.     Label1.Caption = "Outer Radius  " & HScroll1.Value
  443. End Sub
  444. Private Sub HScroll2_Change()
  445.     Label2.Caption = "Inner Radius   " & HScroll2.Value - 80
  446.         
  447. End Sub
  448. Private Sub HScroll2_Scroll()
  449.     Label2.Caption = "Inner Radius   " & HScroll2.Value - 80
  450. End Sub
  451. Private Sub HScroll4_Change()
  452.     Label3.Caption = "Inner Offset     " & HScroll4.Value
  453. End Sub
  454. Private Sub Option_Click(Index As Integer)
  455.     PenColor = CPicture(Index).BackColor
  456. End Sub
  457. Private Sub WOption_Click(Index As Integer)
  458.     Picture1.DrawWidth = Index
  459. End Sub
  460.