Re: Could GtkLayout be contained within GtkLayout??



"driverking" <driverking pchome com tw> writes:

Hi,

Is it possible to make outer GtkLayout contained within inner GtkLayout widget?
I need a container widget which is like the Panel component in Java.
This container widget can contain another container widget provided with its location
coordinate with respect to its parent container. 

Yes, GtkLayouts can contain any widget, including another GtkLayout.  I
don't know if it's worth bringing up the usual warnings about absolute
placement of widgets in this case.

Another question, is there any widget similar to the motif DrawingArea?
The motif DrawingArea can be both a canvas and a container, but the GtkDrawingArea
seems to be a pure canvas. If GTK+ doesn't support this widget, how can I write a widget
with such feature? 

You can draw on a GtkLayout in an expose event, or you can write your
own, custom widget if you feel it warrants it.

-Jonathan




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