> >
> > You should never draw anything in an enter/leave callback, but only in an
> > expose event. Also note that creating/destroying a GC each time you draw
> > it is very slow, so you should do something like this instead:
>
> Ok, I have questions here and they are because I really want to know
I have been able, using GDK, to draw while entering and leaving. One
example could be in trying to create
a highlight effect as you enter a window.
Chris
Kevin DeKorte wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Cédric Lucantis wrote:
>
>> Le samedi 5 mai 2007 00:48, Kevin D
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Cédric Lucantis wrote:
> Le samedi 5 mai 2007 00:48, Kevin DeKorte a écrit :
>
> You should never draw anything in an enter/leave callback, but only in an
> expose event. Also note that creating/destroying a GC each time you draw it
> is very slow,
Le samedi 5 mai 2007 00:48, Kevin DeKorte a écrit :
> Hi,
>
> I have a situation where I need to highlight an eventbox when a user
> enters it and unhighlight it when the users leaves. I'm using this code
> but the color I'm drawing in the leave_button_callback is always wrong
> and varies from run