[Gambas-user] DrawArea errors
Benoît Minisini
gambas at ...1...
Sat Feb 26 18:52:47 CET 2011
> i have this code
>
> ' Gambas class file
>
> Public Sub Form_Open()
>
> Draw.Begin(drawArea)
>
> End
>
> Public Sub drawArea_Draw()
> Draw.Circle(10, 10, 5)
>
>
> End
>
>
> and i get these errors.
>
>
> (Project99:15758): Gdk-CRITICAL **: gdk_drawable_get_colormap: assertion
> `GDK_IS_DRAWABLE (drawable)' failed
>
> (Project99:15758): Gdk-CRITICAL **: gdk_gc_set_background: assertion
> `GDK_IS_GC (gc)' failed
>
> (Project99:15758): Gdk-CRITICAL **: gdk_drawable_get_colormap: assertion
> `GDK_IS_DRAWABLE (drawable)' failed
>
> (Project99:15758): Gdk-CRITICAL **: gdk_gc_set_foreground: assertion
> `GDK_IS_GC (gc)' failed
>
> (Project99:15758): Gdk-CRITICAL **: gdk_drawable_get_colormap: assertion
> `GDK_IS_DRAWABLE (drawable)' failed
>
> (Project99:15758): Gdk-CRITICAL **: gdk_gc_set_background: assertion
> `GDK_IS_GC (gc)' failed
>
> (Project99:15758): Gdk-CRITICAL **: gdk_drawable_get_colormap: assertion
> `GDK_IS_DRAWABLE (drawable)' failed
>
> (Project99:15758): Gdk-CRITICAL **: gdk_gc_set_foreground: assertion
> `GDK_IS_GC (gc)' failed
>
> (Project99:15758): Gdk-CRITICAL **: gdk_gc_set_clip_rectangle: assertion
> `GDK_IS_GC (gc)' failed
>
> (Project99:15758): Gdk-CRITICAL **: gdk_draw_arc: assertion
> `GDK_IS_DRAWABLE (drawable)' failed
>
>
> i use Ubuntu 10.04 AMD64.
You should not have these errors, but anyway your code is not correct!
Regards,
--
Benoît Minisini
More information about the User
mailing list