[Gambas-user] DRAWEREA
Jussi Lahtinen
jussi.lahtinen at ...626...
Sat Apr 4 20:19:31 CEST 2009
Hi!
If you wan't to use refresh like that, you must set drawingarea
propertie "cached" to true.
Jussi
On Sat, Apr 4, 2009 at 21:10, juelin <juergen.linder at ...17...> wrote:
>
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list