[comp.windows.x.motif] uniformity in RowColumns

brian@ankh.ankh.ftl.fl.us (Brian Mitchell Leach) (08/11/90)

I've set up a RowColumn widget to be in Column-major format, and hardcoded
the number of columns.  In the first column, I have variable length label
widgets, and in the second column I have variable length text widgets.
The row column takes the largest width and height from ALL children and
sizes ALL children with those dimensions.

For the rows, this works great.  I can use a different font for the
text and label widgets, and the rows will line up nicely.  My problem is
the label widgets are stretched to match the widest text widget, and my
screen looks something like this:

Name:                         [-------------]
Address:                      [----------------------------]

I would like to bring the text fields over to the left, but haven't
found a way to do it.  If I use two vertical RowColumns, they no longer
align by rows because of differences in the font sizes.

Can anyone suggest a way to implement this without writing a new widget
based on the RowColumn widget?  Should I be using a form?

Please Email an answer to me as well as post if you can help.
Thanks in advance.

--
-----
brian@ankh.ankh.ftl.fl.usa