Re: Signal when window is shown



From: hunchback netcabo pt
>
> >You need to do your drawing in the expose handler. All drawing comes after
> >the window has been mapped to the screen.
>
> when i tried the expose_event the program occurs segmentation fault
> when it tries to paint...

That's probably an error with your code. Try commenting out everything
except for the "return" statement at the end of the function, and
it shouldn't seg fault. (Of course, it won't draw either). Then go
back and add your code a piece at a time until you find the error.

Ron Steinke

P.S. Please try to stick line breaks in your messages every 60-70 characters.



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