[comp.windows.x.motif] Best way to implement select-a-string

yiannis@seahorse.ecn.purdue.edu (Yiannis E Papelis) (10/24/90)

At some point in my program the user must select one of N strings.
N is variable, that is it can change during execution and thus
strings can be added/removed.
It is straightforward to implement a listbox to offer the user
the selection, but I can't afford the space on the window, (let
alone the fact that N is variable).  Also it is desirable to have
the most recet selection show as a one line text field.
 
Are there any recommendations about what type of entity will better
serve my purposes?  I have looked through several of the examples
around and couldn't find something similar.

Any help will be appreciated.

------------------------------------------------------------
Yiannis E. Papelis			Department of ECE.
yiannis@eng.uiowa.edu			University of Iowa
------------------------------------------------------------

bruce@hpihoah.cup.hp.com (Bruce LaVigne) (10/25/90)

> At some point in my program the user must select one of N strings.
> N is variable, that is it can change during execution and thus
> strings can be added/removed.
> It is straightforward to implement a listbox to offer the user
> the selection, but I can't afford the space on the window, (let
> alone the fact that N is variable).  Also it is desirable to have
> the most recet selection show as a one line text field.
>  
Possibly a command widget, although it won't take up any less space
than a list widget would...  It would give you the option of putting
the most recent selection in the text field...

-bruce