[comp.windows.x] Motif Command widget question

toml@ninja.Solbourne.COM (Tom LaStrange) (06/06/90)

My question is fairly simple:  How is the Motif Command widget typically
used?  It is considered a dialog widget, yet it has no confirmation
buttons.  I also could not see a way to put confirmation buttons on it
even if I wanted to.  Is it really meant to be used as a dialog box?

Thanks,
Tom LaStrange

Solbourne Computer Inc.    ARPA: toml@Solbourne.COM
1900 Pike Rd.              UUCP: ...!{boulder,sun}!stan!toml
Longmont, CO  80501

mitch@edsvcs.osf.org (Mitch Trachtenberg) (06/07/90)

> ...How is the Motif Command widget typically used?  

One typical use is to place the command widget at the bottom of
a Motif main window (or, in Motif 1.0, just under the menubar)
and use it in addition to the menu system as a way of entering
commands into your application.  You can register a callback 
which will be called whenever the enter key is pressed, or when
an item in the command history list is double clicked.

This widget may be of more interest to those porting preexisting
command-line oriented applications than to those developing Motif
apps from scratch.

(The Motif command widget provides a text entry field 
grouped with a list, with the list automatically maintaining 
a command "history.")

--
Mitch Trachtenberg, OSF  (mitch@osf.org) (617) 621-8895