Re: drawing area and expose event
- From: Havoc Pennington <hp redhat com>
- To: <hunchback netcabo pt>
- Cc: <gtk-list gnome org>, "satyajit kanungo" <satyajit kanungo wipro com>
- Subject: Re: drawing area and expose event
- Date: 27 Feb 2002 12:43:54 -0500
<hunchback netcabo pt> writes:
> > Then I attached an "expose-event" to the drawing area and in the callback I put >the same
> > function(drawing fuction) and it draws properly .
> > Do we always need to attach the expose event to the drawing area to draw >anything on it .
> > Is there any other way where I can force the drawing .
>
> i also did something similar, and the only way it worked was connecting to
> expose-event, i think that it is always necessary to do that because the area is only
> showed when gtk_main_init starts, so when you try to paint on the area before that
> you are painting on something that does not exist... so in order to it happear, it is
> only painted when the drawing-area is exposed.
>
> Somebody correct me if i'm wrong...
>
You're exactly right.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]