Re: [gtkmm] configure_event in drawing area



>> 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]