lining up headers with fields



hello all,
  i'm trying to create a table with headers at the top for each column. 
i'm pretty darn new to all of this, and i'm having trouble getting the
columns of the table to be the same size as their headers.  i created the
header row as a hbox (which i'll now call the header box) with a bunch of
frames containing labels packed inside. i then pack this header box in to a
vbox. after that, i created a scrolled window, in which i put my table.  i
then also packed this scrolled window in to that same vbox.
  now i think what i need to do is set each column of the table's width to
the width of the corresponding frame in the header box.  i only know that
frame's width after it is shown, so i execute a show_all after i build the
header box, then go grab the width values for each frame.  i suspect this
is not the right approach, so if anyone could suggest a better one i would
be really greatfull.  anyway, as i was saying :), i now start building the
table.  i set each widget's width that i attach to the width of that
column's header frame.  only it doesn't quite seem to work.  the fields in
the table end up being slightly larger than the headers.  i've tried
setting both the header box and table columns spacing to 0, but that didn't
help.  after i do all this, and show my (misaligned) table, i went through
and got the width values again, and they match, so there must be padding or
something being inserted somewhere, right?

help! (and thanks :) ),
-tim




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