[Gambas-user] DrawArea problems with gtk in 3.3.90 - rev. #5417

Benoît Minisini gambas at ...1...
Sun Dec 9 16:50:09 CET 2012


Le 09/12/2012 16:30, Willy Raets a écrit :
>
>> It is fixed in revision #5420.
>
> Thanks, I'll have a look at it as soon as I have rev #5420 installed
>>
>> 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.
>
> DrawingArea in example is named drwAbout
>
> First line of code in Form_Activate() after the Dim is
> drwAbout.Cached = True
> Next I start drawing all.

Sorry, didn't see that line! :-)

-- 
Benoît Minisini




More information about the User mailing list