Re: [INIMSS] Which is the best place to initialize widgets in a window.
- From: Dino Cherian K <inimss yahoo com>
- To: Paul Davis <pbd Op Net>, gtk-list <gtk-list gnome org>
- Subject: Re: [INIMSS] Which is the best place to initialize widgets in a window.
- Date: Thu, 07 Feb 2002 11:04:57 +0530
Hi
Will the events, map_event & expose be triggered multiple times in the
life of a window?
My understanding is that the map event will be triggered only once,
during the creation of the window for the first time, but the other one,
expose, will be triggered each time the window or widget comes to the
foreground (ie, its visible on the screen).
Thanks
Dino
Paul Davis wrote:
>
> >Which is the best event handler to be used for initializing the widgets
> >in a window, (to load data into it).
>
> the expose event is where the widget gets drawn, so that would be the
> obvious place. just do your stuff, and return FALSE. the regular
> drawing code will then happen as expected, using your data.
>
> i sometimes use map_event for widgets that need to be rebuilt every
> time they are "mapped" (XWindow terminology for the step of taking the
> X server data structure for a window and making its contents appear on
> a display). however, in general, i think you should be using the
> expose event.
>
> --p
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]