Re: gtk_widget_realize
- From: Havoc Pennington <hp redhat com>
- To: sgop users sourceforge net
- Cc: Jin Chen <jinc companionlink com>, gtk-app-devel-list gnome org
- Subject: Re: gtk_widget_realize
- Date: 08 Mar 2001 14:29:37 -0500
Markus Lausser <sgop users sourceforge net> writes:
For example you have to realize is manually if you want to draw into a
widget->window with the gdk_draw_* functions. If the widget was not realized
then widget->window == NULL
Shouldn't realize manually in this case; realization is guaranteed by
the time you get an expose event, and you should draw in response to
expose events. See the "scribble" example in the tutorial.
realization does _not_ put a widget onscreen, it creates the GdkWindow
but doesn't show it. So any drawing you do will be lost.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]