TmCommand
Section: C Library Functions (3)
Updated: 24 July 1993
Index
Return to Main Contents
NAME
TmCommand
- the Command widget class
SYNOPSIS
xmCommand
pathName [options]
DESCRIPTION
This is the
tcl
binding to the Motif Command widget.
CLASSES
The class name for resource files is
XmCommand.
Resources are inherited from
TmSelectionBox, TmBulletinBoard, TmManager, TmCore.
Methods are inherited from
TmCore.
RESOURCES
The new resources are
-
command
historyMaxItems
historyVisibleItemCount
promptString
- command
-
The value for this resource is the string displayed in the command area.
NB
There seems to be a Motif bug that makes this resource useless.
METHODS
New methods for this class are
-
appendValue
error
commandChangedCallback
commandEnteredCallback
- appendValue command
-
appends the command to the string shown in the command area
- error error
-
displays the error message in the history area
- setValue value
-
replaces the string displayed in the command area
CALLBACK SUBSTITUTIONS
The substitutions supported for this class are:
-
%reason
-the aditional values are
-
command_changed
command_entered
%value
- the string showing in the command window
BUGS
A Motif (1.2.1) bug makes the
command
resource always show as an empty string,
so you have to use the
%value
substitution in a callback.
AUTHOR
Jan Newmarch, University of Canberra
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- CLASSES
-
- RESOURCES
-
- METHODS
-
- CALLBACK SUBSTITUTIONS
-
- BUGS
-
- AUTHOR
-
This document was created by
man2html,
using the manual pages.
Time: 04:19:00 GMT, December 02, 2024