Re: Layout help



mvogt@juptech.com writes: 
> So, are there any web pages which contain tips or tricks for controlling
> layout in fine detail (other than the documentation on www.gtk.org)?
>

My book doesn't have too many details, but it has a short but
hopefully useful discussion of boxes and labels in the third chapter.
http://developer.gnome.org/doc/GGAD/
 
> An example of what I would like to be able to do: constrain the top half of
> a vbox to remain at the original vertical size, while allowing a resize to
> change the vertical dimension of the lower half of the vbox.
> 

You just pack the top widget with expand and fill set to FALSE, then
you pack the bottom one with those set to TRUE.

Another useful tool when doing layout is GtkAlignment; have a look at
that. Also in general people overuse boxes, when they could get a
nicer grid-style effect with GtkTable.

Havoc




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