Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!jpl-devvax!david From: david@jpl-devvax.JPL.NASA.GOV (David E. Smyth) Newsgroups: comp.windows.x.motif Subject: Re: Help building table of text/label widgets Message-ID: <10710@jpl-devvax.JPL.NASA.GOV> Date: 11 Dec 90 22:58:01 GMT References: <327@comtst.UUCP> <9012111939.AA15779@osf.osf.org> Reply-To: david@jpl-devvax.JPL.NASA.GOV (David E. Smyth) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 38 meeks@osf.org (W. Scott Meeks) writes: >>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. How about using the Table widget. This is the perfect use. It's got some bugs right now involving geometry management when used with Motif (it does not shrink nicely anymore). Kee claims to be working on it, so I am not ;^) Table can be had from Kee or within the Wcl distribution from expo.lcs.mit.edu:/contrib/Wcl1_04.tar.Z ------------------------------------------------------------------------- David Smyth david@jpl-devvax.jpl.nasa.gov Senior Software Engineer, seismo!cit-vax!jpl-devvax!david X and Object Guru. (818)393-0983 Jet Propulsion Lab, M/S 230-103, 4800 Oak Grove Drive, Pasadena, CA 91109 --------------------------- Quote of the Day: --------------------------- "A Guru is not one who simply knows all the answers. Rather, a Guru is like one who walks among the mountains, and by wandering around abit, can see the horizon through long narrow canyons." -------------------------------------------------------------------------