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.


------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to