[comp.windows.x] Question about HP Row/Column Manager

foonberg@antares.aero.org (Alan M. Foonberg) (02/11/89)

I'm a first-time widget user, and I have a question regarding the use of the HP
Row/Column Manager widget.

Using XtSetArg, I have set the following resources:

	XtNlayoutType:	XwMAXIMUM_UNALIGNED
	XtNlayout:	XwMINIMIZE
	XtNmode:	XwN_OF_MANY

I've created 7 children of the row/column manager widget, each of which
is a toggle button.  Each toggle button can have text of a different length, so
some rows in the row/column manager will have more toggle buttons than other
rows.  

All my buttons show up, properly aligned, but the row/column manager is too
tall.  The height appears to depend upon the number of children I've created
regardless of how many can fit on any of the rows.  For example, if row 1 has
buttons 1, 2, 3, and 4, while row 2 has buttons 3, 4, 5, 6, and 7, the
row/column manager should only be 2 rows tall.  Instead, it is 7 rows tall with
5 rows of empty space below the 2 rows in use.

Am I missing something basic here, or is there a problem with how the
row/column manager decides how tall to make itself?

Thanks,

Alan Foonberg
foonberg@aerospace.aero.org

bw@hpcvlx.HP.COM (Bill Wilhelmi) (02/15/89)

Regarding the Row/Column manager, there does seem to be a 
problem with sizing to the number of children when it is
given no size hints.  If you specify the number of columns
with XtNcolumns or the width of the manager with XtNwidth,
it seems to size itself appropriately to the number of 
children.  However, if no dimensions are specified, it attempts
to size itself based on a single column, yet for some reason
actually sizes itself for more than one column.  This is 
probably a bug.  

You can get around this by specifying the number of columns
you want.

Bill Wilhelmi
Hewlett-Packard Company
Corvallis Workstation Operation