Re: See-through container



David E. Konerding wrote:

Hi folks,

I previously posted a question about containers; specifically, i want to
have a layout container in which drawing
done to the parent window "shows through" layout where nothing is placed
on the layout.  Here's an example of what's not working for me.
The diagonal line is obscured by the inner_layout Layout container,
although I am setting the back_pixmap for the Layout's window and
bin_window to NULL, which is supposed to do what I want.  Anybody have
any suggestions?

You dont need to mess with gdk_window_set_back_pixmap(), it
should be irrelevent in this context (it sets the X server with
a default background for your GdkWindow)

You should simply try doing:
   GTK_WIDGET_SET_FLAGS (layout, GTK_NO_WINDOW)
on your layout *before* it gets realized.

Remember that GTK_NO_WINDOW widgets draw to there
parent windows, so when you do gdk_draw_line, you should
not ignore widget->allocation.[xy]  :)

Cheers,
                                      -Tristan




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