Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!wuarchive!uunet!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!news.funet.fi!kannel!ats From: ats@lut.fi (Ari Suutari) Newsgroups: comp.windows.x.motif Subject: A list with 1 to N columns with XmList Widget ? Message-ID: <1991Jan01.110513.1348@lut.fi> Date: 1 Jan 91 11:05:13 GMT Organization: Lappeenranta University of Technology, Finland Lines: 31 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