Re: [gtk-list] Re: layered widgets



In message <Pine.BSF.4.02A.9903231544590.17231-100000@zirx.pair.com>you write:
>
>On Tue, 23 Mar 1999, Giaslas Georgios wrote:
>> hello guys
>> how could i make some pixmap widgets shown over
>> a drawing or a background pixmap?
>> (i've tried to draw something on the main window,
>> but when i add a fixed container in it, it hides the drawing.)
>> 
>
>You can't do this, probably what you want is GtkDrawingArea or
>GnomeCanvas. You can't layer widgets so they are not much good for custom
>displays.

says who ? i layer several widgets having called
gtk_widget_shape_combine_mask on their ancestral window. its works
quite nicely. Moreover, even without this, if you used a Fixed widget,
you can certainly stick several widgets in the same part of the Fixed
container, and they will overlay each other. the shape stuff just gets
the transparency right. it is true that there is no way to define the
stacking order except by the order in which the widgets are created
and realized.

am i wrong ?

--p



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