Re: GTK+- widget packing question



BobS0327 wrote:
I'm using gtk_vbox_new and gtk_hbox_new to pack widgets on a window. My
problem is that the packing is too uniform. Every widget is assigned the
same uniform box size.

In other words, my first horizontal wdget would be a text box, the next
widget would be a listview and the third horizontal widget would again be a
text box. I wouid like to have each widget  be of a different vertical and
horizontal length. The text box would be one row horizontally, the listview
would be four rows horizontally and the next text box would again be one row
horizontally. How can I accomplish this nonuniform positioning?

Different containers have different "packing properties"; see:

http://developer.gnome.org/doc/API/2.0/gtk/GtkContainer.html#gtk-container-child-set

Mostly the functions used to add children set these properties;
for example gtk_box_pack_start() will set the expand & fill
options.

Cheers,
                    -Tristan



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