Re: GTK+- widget packing question
- From: Tristan Van Berkom <tvb gnome org>
- To: BobS0327 <BobS0327 hotmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GTK+- widget packing question
- Date: Wed, 26 Apr 2006 09:52:18 -0400
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]