Re: An odd DrawingArea problem



On Sat, 1 May 2004 dhaude physnet uni-hamburg de wrote:
Hi folks,

imagine a GtkDrawingArea that doesn't have an expose_event
callback connected. Assume something has been drawn on this area.
If the DrawingArea is (partially) hidden under some other window
and then exposed again, nothing will happen on the freshly
exposed parts of the window, will it?

But it will: the exposed parts get painted in a light grey (the
typical gtk background color). There seems to be some underlying
expose event handler that does it, otherwise there would be stuff
left of the window that formerly obstructed the DrawingArea. My
question is: How can this be stopped?
Hi Daniel!
When an expose event occurs GTK will clear the affected region with the
background color or background pixmap right before your applications
expose callback is called. You can change this behaviour with
gdk_window_set_back_pixmap() when you set NULL as pixmap.

Regards,
                     Peter
-- 
====================================================================
Peter Krüger

applied software solutions (appss) GmbH
Sandtorstr. 23
D-39106 Magdeburg
Germany

Phone:  +49-(0)391-54486-19388
Fax:    +49-(0)391-54486-19222
email:  krueger appss de
URL:    http://www.appss.de/

Managing Director: Uwe Hess, Dietmar Schäfer
Register: HRB12386, AG Magdeburg

"Virtual business becomes reality!"

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
====================================================================




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