home *** CD-ROM | disk | FTP | other *** search
/ An Introduction to Progr…l Basic 6.0 (4th Edition) / An Introduction to Programming using Visual Basic 6.0.iso / PROGRAMS / CH10 / 10-1-3.FRM (.txt) next >
Encoding:
Visual Basic Form  |  1998-09-18  |  1.6 KB  |  52 lines

  1. VERSION 5.00
  2. Begin VB.Form frm10_1_3 
  3.    Caption         =   "Circle"
  4.    ClientHeight    =   2655
  5.    ClientLeft      =   2910
  6.    ClientTop       =   1890
  7.    ClientWidth     =   2745
  8.    BeginProperty Font 
  9.       Name            =   "MS Sans Serif"
  10.       Size            =   8.25
  11.       Charset         =   0
  12.       Weight          =   700
  13.       Underline       =   0   'False
  14.       Italic          =   0   'False
  15.       Strikethrough   =   0   'False
  16.    EndProperty
  17.    LinkTopic       =   "Form1"
  18.    PaletteMode     =   1  'UseZOrder
  19.    ScaleHeight     =   2655
  20.    ScaleWidth      =   2745
  21.    Begin VB.PictureBox picOutput 
  22.       Height          =   1935
  23.       Left            =   120
  24.       ScaleHeight     =   1875
  25.       ScaleWidth      =   2475
  26.       TabIndex        =   1
  27.       Top             =   600
  28.       Width           =   2535
  29.    End
  30.    Begin VB.CommandButton cmdDraw 
  31.       Caption         =   "Draw Circle"
  32.       Height          =   375
  33.       Left            =   720
  34.       TabIndex        =   0
  35.       Top             =   120
  36.       Width           =   1335
  37.    End
  38. Attribute VB_Name = "frm10_1_3"
  39. Attribute VB_GlobalNameSpace = False
  40. Attribute VB_Creatable = False
  41. Attribute VB_PredeclaredId = True
  42. Attribute VB_Exposed = False
  43. Private Sub cmdDraw_Click()
  44.   'Draw a circle with center (7, 6) and radius 3
  45.   picOutput.Cls
  46.   picOutput.Scale (-2, 12)-(12, -2) 'Specify coordinate system
  47.   picOutput.Line (-2, 0)-(12, 0)    'Draw x-axis
  48.   picOutput.Line (0, -2)-(0, 12)    'Draw y-axis
  49.   picOutput.PSet (7, 6)             'Draw center of circle
  50.   picOutput.Circle (7, 6), 3        'Draw the circle
  51. End Sub
  52.