[Gambas-user] DRAWEREA
juelin
juergen.linder at ...17...
Sat Apr 4 20:10:53 CEST 2009
hello,
I'm new and I have a question.
I would like to draw some points in defferent colors in a drawarea.
But my program dosn't work. (see source) There is nothing to see. (no
points)
Can somebody help me?
Source:
DrawingArea1.Clear
DrawingArea1.Show
DrawingArea1.Visible = TRUE
DrawingArea1.Foreground = Color.Black
DrawingArea1.Background = Color.White
DrawingArea1.Refresh
Draw.Begin(DrawingArea1)
Draw.Transparent = FALSE
Draw.ForeColor = Color.Black
Draw.Foreground = Color.Black
Draw.BackColor = Color.White
Draw.Background = Color.White
Draw.FillStyle = 1
f = &HFF00
FOR x = 10 TO 50 STEP 1
Draw.ForeColor = f
Draw Foreground = f
FOR y = 10 TO 50 STEP 1
Draw.Point(x, y)
NEXT
f = f + 4
NEXT
Draw.End
DrawingArea1.Refresh
--
View this message in context: http://www.nabble.com/DRAWEREA-tp22882689p22882689.html
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list