How to pack widgets (newbie) ?




Hi,

I'm starting using GTK for a visualization program, and I found a small
problem with how to pack widgets, specifically, labels of different
sizes and boxes of the same size. I want to have something like this


labelAAAAA:         box1
labelB:             box2
labelCC:            box3


but after several tries with gtk_hbox_new() and gtk_box_pack_start() the
best I end up is with


labelAAAAA:         box1
  labelB:           box2
 labelCC:           box3


I've looked at the documentation online ( Gtk+ 1.0 tutorial ), but they
don't seem to contemplate this case. Could somebody give me a hint or a
code snipet to help me move forward ?  I know it's a very simple
question, but I cannot figure out the correct settings at this time.

I'm using GTK 1.0.5 on a RedHat Linux machine.

Thanks in advance

Hugo

--
Hugo Varotto
Computer Science Dept.
University of Pittsburgh
hvarotto@cs.pitt.edu



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