home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm10_3_1
- Caption = "Simple Bar Chart"
- ClientHeight = 3705
- ClientLeft = 1530
- ClientTop = 2100
- ClientWidth = 4560
- 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 = 3705
- ScaleWidth = 4560
- Begin VB.PictureBox picPop
- Height = 2895
- Left = 120
- ScaleHeight = 2835
- ScaleWidth = 4275
- TabIndex = 1
- Top = 720
- Width = 4335
- End
- Begin VB.CommandButton cmdDisplayPop
- Caption = "Display Populations"
- Height = 495
- Left = 1080
- TabIndex = 0
- Top = 120
- Width = 2415
- End
- Attribute VB_Name = "frm10_3_1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdDisplayPop_Click()
- 'Populations of California and New York
- picPop.Scale (-1, 40)-(3, -5) 'Specify coordinates
- picPop.Line (-1, 0)-(3, 0) 'Draw x-axis
- picPop.Line (0, -5)-(0, 40) 'Draw y-axis
- picPop.Line (0.7, 32)-(1.3, 0), , BF 'Draw solid rectangle for CA
- picPop.Line (1.7, 18)-(2.3, 0), , BF 'Draw solid rectangle for NY
- picPop.CurrentY = -1 'Vertical position for labels
- picPop.CurrentX = 0.7 'Beginning horizontal position of label for CA
- picPop.Print "California";
- picPop.CurrentX = 1.7 'Beginning horizontal position of label for NY
- picPop.Print "New York";
- End Sub
-