home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm10_1_3
- Caption = "Circle"
- ClientHeight = 2655
- ClientLeft = 2910
- ClientTop = 1890
- ClientWidth = 2745
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2655
- ScaleWidth = 2745
- Begin VB.PictureBox picOutput
- Height = 1935
- Left = 120
- ScaleHeight = 1875
- ScaleWidth = 2475
- TabIndex = 1
- Top = 600
- Width = 2535
- End
- Begin VB.CommandButton cmdDraw
- Caption = "Draw Circle"
- Height = 375
- Left = 720
- TabIndex = 0
- Top = 120
- Width = 1335
- End
- Attribute VB_Name = "frm10_1_3"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdDraw_Click()
- 'Draw a circle with center (7, 6) and radius 3
- picOutput.Cls
- picOutput.Scale (-2, 12)-(12, -2) 'Specify coordinate system
- picOutput.Line (-2, 0)-(12, 0) 'Draw x-axis
- picOutput.Line (0, -2)-(0, 12) 'Draw y-axis
- picOutput.PSet (7, 6) 'Draw center of circle
- picOutput.Circle (7, 6), 3 'Draw the circle
- End Sub
-