Hi again. I don't think I managed to explain my problem clear enough so here is a small example program. Compile the attached file and run it. If you click the "Add line"-button it will segfault. If you first click on the drawingarea-tab and then on the button-tab and then click on the "Add-line"-button it wont segfault. I don't want it to segfault in the first case. Please help me to solve this... Regards Daniel Sundberg On Thu, 12 Sep 2002 20:09:51 -0400 Paul Davis <pbd op net> wrote: > >> the order of events related to a window becoming visible is something > >> like: > >> > >> show > >> realize > >> configure << whenever its size changes, including the first show > >> map > >> expose > >> > >> the exact order may be a little different; what matters here is that > >> the expose event comes *after* the configure event. > >> > >> you can get the information about size from configure, then draw in > >> expose. what the user sees on the screen will reflect what you do in > >> the expose event handler. > >> > > > >Ok, the problem I'm having is actually that i want to draw to the drawingarea > >before it's visible. Maybe i should write a short example program to illustrat > >e my problem. > > as i said before, *ALL* drawing happens in an expose_event. if you > draw in the *first* expose_event, you *are* drawing *before* the > window is visible. > > --p > _______________________________________________ > gtkmm-list mailing list > gtkmm-list gnome org > http://mail.gnome.org/mailman/listinfo/gtkmm-list >
Attachment:
datest.cc
Description: Binary data