[comp.windows.x] multi-column list boxes in Motif?

john@CTC.CONTEL.COM (John Schettino x4156) (06/07/90)

I am designing an Motif application which needs to have three columns of
data scroll in unison. I'd like to know if anyone hase used the list box
control widget to accomplish this. Example:

+------------------------------------------+
| +--------------------------------+ +-+   |
| | display a | input a  | input A | |^|   |
| | display b | input b  | input B | | |   |
| | display c | input c  | input C | | |   |
| | display d | input d  | input D | | |   |
| | display e | input e  | input E | |v|   |
| +--------------------------------+ +-+   |
+------------------------------------------+

So if the user scrolls this list, all three columns scroll and remain
syncronized. The first column contains display-only text, the other two
allow input (or pop-up pick lists.) Do I want do do somthing impossible
using just toolkit widgets?

I'm not looking for a complete implementation from the net, just let me know
if you've done it using Motif and if its hard to do, or if it seems possible 
to do. 

e-mail replies, I'll post a summary, and THANKS!

John Schettino
Contel Technology Center
john@ctc.contel.com
<standard disclaimers apply...>

ben@hpcvlx.cv.hp.com (Benjamin Ellsworth) (06/09/90)

I suggest that you start with three lists within a RowColumn (or Form
if you're daring and expecting 1.1 soon) within a ScrolledWindow.  You
can play with sensitivity and/or translations to get the input behavior
that you want.  I assume that the font is the same for all text.

-----------------------------------------------------------------------
Benjamin Ellsworth      | ben@cv.hp.com                | INTERNET
Hewlett-Packard Company | {backbone}!hplabs!hp-pcd!ben | UUCP
1000 N.E. Circle        | (USA) (503) 750-4980         | FAX
Corvallis, OR 97330     | (USA) (503) 757-2000         | VOICE
-----------------------------------------------------------------------
                     All relevant disclaimers apply.
-----------------------------------------------------------------------