LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   GTK+- widgets, want to pack them in nonuniform manner (https://www.linuxquestions.org/questions/programming-9/gtk-widgets-want-to-pack-them-in-nonuniform-manner-438816/)

BobS0327 04-25-2006 07:18 PM

GTK+- widgets, want to pack them in nonuniform manner
 
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.

An example of want I want to accomplish. My first horizontal widget would be a text box, the next widget would be a listview and the third horizontal widget would again be a text box. I would like to have each widget be of a different vertical and horizontal length. The text box would be one row vertically and one column horizontally, the listview would be four rows vertically and two columns horizontally and the next text box would again be one row vertically and two columns horizontally. How can I accomplish this nonuniform positioning?

Thanx in advance for any assistance offered

Bob

astorm 04-26-2006 11:54 AM

The antidote to your predicament is a table. It's incredibly easy to specify how you want everything layed out by passing which table coordinates to "attach" to.

BobS0327 04-26-2006 04:30 PM

Thanx for the Table info!!!!!


All times are GMT -5. The time now is 02:00 PM.