Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!ucsd!ucbvax!osf.org!meeks From: meeks@osf.org (W. Scott Meeks) Newsgroups: comp.windows.x.motif Subject: Re: Help building table of text/label widgets Message-ID: <9012111939.AA15779@osf.osf.org> Date: 11 Dec 90 19:39:50 GMT References: <327@comtst.UUCP> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 32 >From: comtst!mdv@uunet.uu.net (Mike Verstegen) > >I'm trying to build a table that looks like this with about 10 rows >of a label plus three columns of data as shown below. > > Col1Hdg Col2Hdg Col3Hdg >Row1Label R1C1data R1C2data R1C3data >Row2Label R2C1data R2C2data R2C3data >Row3Label R3C1data R3C2data R3C3data >... > >Note that the Row labels and column headings are of differing width >than each other and different than the width of the data. > > How about: XmRowColumn with XmNorientation = XmHORIZONTAL where each item in the RC is another XmVERTICAL XmRowColumn containing each column of information. So the first column would contain a blank label and then each of the RowXLabel labels. The second column would contain Col1Hdg and then RXC1data and so on. This will let you align each column of data however you like yet allow each column to be a different width and even change width if the longest entry changes size. Hope this helps. Let me know if you have any questions. . Scott Meeks Open Software Foundation meeks@osf.org (617) 621-7229