Re: Distributing extra space to children

On Sat, Dec 18, 2010 at 12:17:11AM +0900, Tristan Van Berkom wrote:
> On Fri, Dec 17, 2010 at 9:56 PM, Ingo Krabbe <ikrabbe ask gmail com> wrote:
> > On Fri, Dec 17, 2010 at 10:30:21AM -0200, José Romildo Malaquias wrote:
> >> Hello.
> >>
> >> Is it possible to distribute any extra space a box may have to its
> >> children in different proportions. For instance, suppose that there are
> >> 2 children, and the first would receive 70% and the second 30% of the
> >> extra space.
> >>
> >> Romildo
> >
> > Hi Romildo,
> >
> > this distribution can be controlled by GtkAlignment, where each children
> > gets an alignment as parent and the ailgnment gets the box as its
> > parent.
> I dont believe that's what he means, what he wants is that extra
> "expand" space be distributed unevenly among children, however
> both children should fill the allocation (with alignments both
> alignments still receive 50% of the extra space and the child
> takes up a portion of that space, leaving an empty gap).
> It does sound like an interesting feature, I wonder if there's
> any way to achieve this without adding features to GtkBox.

Tristan has made clear what I am looking for.

It is something like the properties weightx and weighty used in the
BagGridLayout in Swing (a standard Java library for building GUI).

Will this still be not possible with forthcoming Gtk+-3 version?


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