Re: Position of widgets



>Hi,
>Is there anyway to position a widget relative to the position of other
>widgets?
>Let's say I've 3 widget A, B and C. Now I want to put a new widget D
>that has to be insert at the right side of A, at the left side of B and
>upon C, for example.

i would use a GtkTable with 4 columns and 2 rows. widget A is attached
to ((0,0),(0,1), B is attached to ((0,2),(0,3)), and C to
((1,0),(0,3)). Set the expand/fill options appropriately, then later
attach D to ((0,1),(0,2)).

i haven't tried it out, but i'm pretty sure that will work.

alternatively, if D can be created "early", then just pack it into a
box, and hide/show it as needed.

--p




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