Re: Paned questions
- From: Olaf Leidinger <leidola newcon de>
- To: rhfreeman <rhfreeman micron com>, GTK Mailing List <gtk-list gnome org>
- Subject: Re: Paned questions
- Date: 04 Feb 2002 16:25:58 +0100
Am 04 Feb 2002 03:54:58 -0700 schrieb rhfreeman:
> Hi folks,
>
> I'm wanting to use the paned widgets to re-size my current widgets but I'm a
> bit unsure about how it works.
>
> My program is quite simple. It has a window with a vbox in it. It keeps
> adding hboxes to the vbox like this:
>
> (no hboxes)
>
> +------------+
> | |
> | |
> | |
> | |
> | |
> +------------+
>
> +------------+
> | |
> | |
> | (hbox) |
> | |
> | |
> +------------+
>
> +------------+
> | hbox 1 |
> | |
> |------------|
> | hbox 2 |
> | |
> +------------+
>
> +------------+
> | hbox 1 |
> |------------|
> | hbox 2 |
> |------------|
> | hbox 3 |
> +------------+
>
> I want a paned widget on the separator between hboxes. So I want a paned
> widget controlling hbox1/hbox2 and another one controlling hbox2/hbox3.
>
> So my questions are:
>
> 1. Can a widget have multiple paned widgets attached to it?
> 2. Can a paned widget control any widget type? As most example code I've
> seen seems to be re-sizing a frame.
>
> Thanks!!!
>
> Rich
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
Hello!
As I understood it a paned widget has two containers where you can add
widgets, a left side and a right one (or an upper and a lower).
+--------------+
| |
| container 1 |
| |
+=== gutter ===+
| |
| container 2 |
| |
+--------------+
You can surely make a hbox to be child of a container.
And I think you don't have to set all the two childs of a paned widget
so you might create the following combination:
+----vbox----------+
| +- hpaned 1----+ |
| | | |
| | child 1 | |
| | | |
| +=== gutter ===+ |
| | | |
| | child 2 | |
| | | |
| +--------------+ |
| +- hpaned 2 ---+ |
| | | |
| | empty/not | |
| | visible | |
| | | |
| +=== gutter ===+ |
| | | |
| | child 2 | |
| | | |
| +--------------+ |
+------------------+
or something similar.
Ciao
Olaf
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]