[Gambas-user] DrawArea errors
math.eber at ...221...
math.eber at ...221...
Sat Feb 26 23:08:43 CET 2011
Try to do something like
Draw.Begin(drawArea)
Draw.Circle(10, 10, 5)
Draw.End
in one Sub, not in two. And not at all in the Draw event that is raised by
drawing...
Just look at all those examples in the Drawing section, plus ImageViewer.
-----Original-Nachricht-----
Subject: Re: [Gambas-user] DrawArea errors
Date: Sat, 26 Feb 2011 21:37:19 +0100
From: Demosthenes Koptsis <demosthenesk at ...626...>
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
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
----------------------------------------------------------------------------
--
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT
data
generated by your applications, servers and devices whether physical,
virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
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