home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm10_4_2
- Caption = "Sector"
- ClientHeight = 3672
- ClientLeft = 3120
- ClientTop = 1968
- ClientWidth = 3408
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 7.8
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 3672
- ScaleWidth = 3408
- Begin VB.PictureBox picOutput
- Height = 2775
- Left = 240
- ScaleHeight = 2724
- ScaleWidth = 2844
- TabIndex = 1
- Top = 720
- Width = 2895
- End
- Begin VB.CommandButton cmdDraw
- Caption = "Draw Sector"
- Height = 495
- Left = 960
- TabIndex = 0
- Top = 120
- Width = 1455
- End
- Attribute VB_Name = "frm10_4_2"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdDraw_Click()
- Dim c As Single
- picOutput.Cls
- picOutput.Scale (-3, 3)-(3, -3) 'Specify coordinate system
- c = 2 * 3.14159
- a = 0.0000001
- b = 0.4
- 'Draw sector with radius lines corresponding to 0 and .4
- picOutput.Circle (0, 0), 2, , -a * c, -b * c
- End Sub
-