[Gambas-user] Something has changed in Paint or DrawintArea?

Fabien Bodard gambas.fr at ...626...
Sat Jun 7 21:38:24 CEST 2014


I think you must set cached property to true
Le 7 juin 2014 00:47, "Jussi Lahtinen" <jussi.lahtinen at ...626...> a écrit :

> OK, I attached specially mangled version of the app. Just run it and click
> with mouse.
>
>
> Public Sub DrawingArea1_Draw()
> ...
> Paint.Begin(DrawingArea1)  <--- this gives error, cannot Paint outside of
> Draw event handler
> ...
>
>
> And if I comment it out, I got; No current device, when trying to Paint
> something.
>
>
> Jussi
>
>
>
>
>
> On Sat, Jun 7, 2014 at 1:34 AM, Benoît Minisini <
> gambas at ...1...> wrote:
>
> > Le 06/06/2014 22:48, Jussi Lahtinen a écrit :
> > > I attached fixed version of you app (several little things). Compare it
> > to
> > > your current code. But I think there are some minor bugs in how Gambas
> > > handles Paint (cannot determine device inside _Draw event and it's not
> > > automatically set). Perhaps Benoit comment this further.
> > >
> > > Jussi
> > >
> >
> > Please elaborate. There are too many bugs in the project for me to know
> > when it does what it is intended for and when it does not...
> >
> > --
> > Benoît Minisini
> >
> >
> >
> ------------------------------------------------------------------------------
> > Learn Graph Databases - Download FREE O'Reilly Book
> > "Graph Databases" is the definitive new guide to graph databases and
> their
> > applications. Written by three acclaimed leaders in the field,
> > this first edition is now available. Download your free book today!
> > http://p.sf.net/sfu/NeoTech
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> 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