Article ID: 123840
Article Last Modified on 1/8/2003
Sub Form_Load ()
Picture1.Move Graph1.Left, Graph1.Top, Graph1.Width, Graph1.Height
Graph1.Visible = False
' Set the color to between 1 and the number of slices or Bars you
' will have (up to 14).
For I = 1 to Graph1.NumPoints
Graph1.ThisPoint = I
Graph1.ColorData = I
Next I
Graph1.DrawMode = 2 'Draw the graph
Picture1.Picture = Graph1.Picture 'Display in picture box
End Sub
' Place the following two lines on one, single line:
Sub Picture1_MouseDown (Button As Integer, Shift As Integer,
X As Single, Y As Single)
Select Case Picture1.Point(X, Y)
Case QBColor(1)
label1.Caption = "1st"
Case QBColor(2)
label1.Caption = "2nd"
Case QBColor(3)
label1.Caption = "3rd"
Case QBColor(4)
label1.Caption = "4th"
Case QBColor(5)
label1.Caption = "5th"
Case QBColor(6)
label1.Caption = "6th"
Case QBColor(7)
label1.Caption = "7th"
Case QBColor(8)
label1.Caption = "8th"
Case QBColor(9)
label1.Caption = "9th"
Case QBColor(10)
label1.Caption = "10th"
Case QBColor(11)
label1.Caption = "11th"
Case QBColor(12)
label1.Caption = "12th"
Case QBColor(13)
label1.Caption = "13th"
Case QBColor(14)
label1.Caption = "14th"
End Select
End Sub
Graph1.DrawMode = 2 Picture1.Picture = Graph1.Picture
Additional query words: 3.00
Keywords: KB123840