Command widget

The Command widget is a composite widget used to allow the user to select a command from a scrollable history list of command items.

Each time a command is entered it is added to the end of the history list. When the history list reaches the maximum number of items specified for it, each subsequent command entry causes the first item in the history list to be removed.

Command is an example of a Selection Box and shares its resource panel.

For more details on the Command widget, see XmCommand(3X) in the OSF/Motif Programmer's Reference.

NOTES

In Motif 1.1, a single child could be added to a Command widget in order to provide some extra functionality. In Motif 1.2, however, you can add many such children. The Command widget does make some assumptions about the function which these extra widgets are to perform, so you are advised to consult your OSF/Motif Programmer's Reference in this instance.

HINTS

You cannot get the value of the command string by applying XmTextGetString(3X) to the command entry text widget within any registered Command Entered and Command Changed callbacks. You can, however, get this information from the callback specific data passed to these functions.

See also: