RE: Paned questions



Yes thanks Olaf (and Thomas) for your input. The solution I used in the end
was to have vpaneds in vpaneds to give all the levels I need. So in Olaf's
example, hpaned2's pack1 widget was infact hpaned1! I can have as many
hboxes as I need now and have some sort of paned control over them.

Just one question now. My hboxes have a drawing_area in them which I need to
resize. However, I can't tell the difference between the main window being
re-sized and the paned widget re-sizing the hbox. I need to handle these
differently! Does the paned widget give out a different signal or something
similar I can use to tell the two events apart?

Thanks!!!

Rich

> -----Original Message-----
> From: Olaf Leidinger [mailto:leidola newcon de]
> Sent: 04 February 2002 15:26
> To: rhfreeman; GTK Mailing List
> Subject: Re: Paned questions
> 
> 
> 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]