[comp.windows.x.motif] A list with 1 to N columns with XmList Widget ?

ats@lut.fi (Ari Suutari) (01/01/91)

	I'm porting some traditional forms-entry programs to Motif environment
	and I'd like to create a list that has more than one column. 
	The result should be something like:

		Column1	Column2
		CODE1	Explanation for code 1
		CODE2	Explanation for code 3
		.	.
		.	.
		And so on ...

	The list should work just like XmList widget does, but the data
	should be arranged in columns.

	I tried to do it with two XmList widgets, one for Column1 and the
	other for Column2. It looks fine, but how could I synchronize the
	widgets so that if user selects second row in Column2 the second
	row in Column1 would also get selected ?

	I have a feeling that I'm doing it all wrong and that there must
	be a simple way to do this. I'd appreciate a lot if Someone out there 
	would give me a hint how to do this, since I'm completely
	stuck with it now.


		Ari Suutari,	ari@hilti.lpr.carel.fi,
				ats@lut.fi

		Lappeenranta,
		FINLAND