[Gambas-user] Can not draw outside of draw enent handler

Demosthenes Koptsis demosthenesk at ...626...
Sun Mar 27 11:16:03 CEST 2011


On Sat, 2011-03-26 at 21:07 +0100, Benoît Minisini wrote:
> > Hi i have just installed gambas3-svn3688
> > 
> > and my project stopped working.
> > 
> > with gambas3-svn3620 was working fine
> 
> Are you talking about the error message "cannot draw outside of event 
> handler"?
> 

Yes that is the message i am talking.

> Your program is buggy, but the drawing component forgot to raise the error. 
> Now the drawing component has been fixed, and you get the error message. Now 
> you have to fix your project!
> 

ok, i try to find the bug but i cant.

i try to make a similar example from this page
http://gambasdoc.org/help/comp/gb.qt4/draw/line?v3

in this page it says

Draw.Begin(ME) where ME is a form.

i get this error in my project for

Draw.Begin(drawArea) where drawArea is the name of a DrawingArea object.

Where is the bug? The name "drawArea" ?

i attach again the project.

> Regards,
> 

-- 
Regards,
Demosthenes Koptsis.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Project99.tar.gz
Type: application/x-compressed-tar
Size: 9451 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20110327/1429a30e/attachment.bin>


More information about the User mailing list