Le 08/12/2012 22:01, Willy Raets a écrit : > Problem occurred on Gambas 3.3.90 - rev. #5417 > Works correctly on Gambas 3.3.4 > > Must be caused by new implementation of DrawArea. > > DrawArea behaves correctly with qt4, gives trouble with gtk > > Attached source archive to see the problem. > > Step 1: Run the application to see what the intention is (it uses qt4) > Step 2: Change component qt4 to gtk and run again to see the problem. > > Thanks, > > Willy >
It is fixed in revision #5420. But note the way you are doing animation is not good: - You are drawing on a non-cached DrawingArea outside of a Draw event. You must not do that, even if at the moment it works because you are using X-Window. Use a cached DrawingArea, or paint only inside the Draw event handler. - You are using the WAIT instruction. You should use a Timer instead. For example, to make animations in the MediaPlayer example, I have implemented a little class named CAnimation. I suggest you look at it and steal it. Regards, -- Benoît Minisini ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user