[Gambas-user] DrawArea errors

Demosthenes Koptsis demosthenesk at ...626...
Sat Feb 26 21:37:19 CET 2011


Yes it maybe not correct i try to figure out how to use a drawing area.
Any example, any help?

On Sat, 2011-02-26 at 18:52 +0100, Benoît Minisini wrote:
> > 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,
> 

-- 
Regards,
Demosthenes





More information about the User mailing list