Blame doc/man/man3/XmCommand.3

Packit b099d7
'\" t
Packit b099d7
...\" Command.sgm /main/12 1996/09/26 14:53:59 cdedoc $
Packit b099d7
.de P!
Packit b099d7
.fl
Packit b099d7
\!!1 setgray
Packit b099d7
.fl
Packit b099d7
\\&.\"
Packit b099d7
.fl
Packit b099d7
\!!0 setgray
Packit b099d7
.fl			\" force out current output buffer
Packit b099d7
\!!save /psv exch def currentpoint translate 0 0 moveto
Packit b099d7
\!!/showpage{}def
Packit b099d7
.fl			\" prolog
Packit b099d7
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
Packit b099d7
\!!psv restore
Packit b099d7
.
Packit b099d7
.de pF
Packit b099d7
.ie     ?\\*(f1?? .ds f1 \\n(.f
Packit b099d7
.el .ie ?\\*(f2?? .ds f2 \\n(.f
Packit b099d7
.el .ie ?\\*(f3?? .ds f3 \\n(.f
Packit b099d7
.el .ie ?\\*(f4?? .ds f4 \\n(.f
Packit b099d7
.el .tm ? font overflow
Packit b099d7
.ft \\$1
Packit b099d7
..
Packit b099d7
.de fP
Packit b099d7
.ie     !?\\*(f4?? \{\
Packit b099d7
.	ft \\*(f4
Packit b099d7
.	ds f4\"
Packit b099d7
'	br \}
Packit b099d7
.el .ie !?\\*(f3?? \{\
Packit b099d7
.	ft \\*(f3
Packit b099d7
.	ds f3\"
Packit b099d7
'	br \}
Packit b099d7
.el .ie !?\\*(f2?? \{\
Packit b099d7
.	ft \\*(f2
Packit b099d7
.	ds f2\"
Packit b099d7
'	br \}
Packit b099d7
.el .ie !?\\*(f1?? \{\
Packit b099d7
.	ft \\*(f1
Packit b099d7
.	ds f1\"
Packit b099d7
'	br \}
Packit b099d7
.el .tm ? font underflow
Packit b099d7
..
Packit b099d7
.ds f1\"
Packit b099d7
.ds f2\"
Packit b099d7
.ds f3\"
Packit b099d7
.ds f4\"
Packit b099d7
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n 
Packit b099d7
.TH "XmCommand" "library call"
Packit b099d7
.SH "NAME"
Packit b099d7
\fBXmCommand\fP \(em The Command widget class
Packit b099d7
.iX "XmCommand"
Packit b099d7
.iX "widget class" "Command"
Packit b099d7
.SH "SYNOPSIS"
Packit b099d7
.PP
Packit b099d7
.nf
Packit b099d7
#include <Xm/Command\&.h>
Packit b099d7
.fi
Packit b099d7
.SH "DESCRIPTION"
Packit b099d7
.PP
Packit b099d7
Command is a special-purpose composite widget for command
Packit b099d7
entry that provides a built-in command-history mechanism\&.
Packit b099d7
Command includes a command-line text-input field, a command-line prompt,
Packit b099d7
and a command-history list region\&.
Packit b099d7
.PP
Packit b099d7
One additional \fBWorkArea\fP child may be added to the Command after
Packit b099d7
creation\&.
Packit b099d7
.PP
Packit b099d7
Whenever a command is entered, it is
Packit b099d7
automatically added to the end of the command-history list and made visible\&.
Packit b099d7
This does not change the selected item in the list, if there is one\&.
Packit b099d7
.PP
Packit b099d7
Many of the new resources specified for Command are actually SelectionBox
Packit b099d7
resources that have been renamed for clarity and ease of use\&.
Packit b099d7
.SS "Descendants"
Packit b099d7
.PP
Packit b099d7
Command automatically creates the descendants shown in the
Packit b099d7
following table\&.
Packit b099d7
An application can use \fBXtNameToWidget\fP to gain access
Packit b099d7
to the named descendant\&. In addition, a user or an application
Packit b099d7
can use the named descendant when specifying resource values\&.
Packit b099d7
.TS
Packit b099d7
tab(?) box;
Packit b099d7
l| l| l.
Packit b099d7
\fBNamed Descendant\fP?\fBClass\fP?\fBIdentity\fP
Packit b099d7
_?_?_?
Packit b099d7
=
Packit b099d7
_?_?_?
Packit b099d7
\fBItemsList\fP?\fBXmList\fP?command-history list region
Packit b099d7
_?_?_?
Packit b099d7
\fBItemsListSW\fP?\fBXmScrolledWindow\fP?T{
Packit b099d7
the ScrolledWindow parent of \fBItemsList\fP
Packit b099d7
T}
Packit b099d7
_?_?_?
Packit b099d7
\fBSelection\fP?\fBXmLabelGadget\fP?command-line prompt
Packit b099d7
_?_?_?
Packit b099d7
\fBText\fP?\fBXmTextField\fP?command-line text-input field
Packit b099d7
_?_?_?
Packit b099d7
.TE
Packit b099d7
.SS "Classes"
Packit b099d7
.PP
Packit b099d7
Command inherits behavior, resources, and traits from \fBCore\fP,
Packit b099d7
\fBComposite\fP, \fBConstraint\fP, \fBXmManager\fP,
Packit b099d7
\fBXmBulletinBoard\fP, and \fBXmSelectionBox\fP\&.
Packit b099d7
.PP
Packit b099d7
The class pointer is \fBxmCommandWidgetClass\fP\&.
Packit b099d7
.PP
Packit b099d7
The class name is \fBXmCommand\fP\&.
Packit b099d7
.SS "New Resources"
Packit b099d7
.PP
Packit b099d7
The following table defines a set of widget resources used by the programmer
Packit b099d7
to specify data\&. The programmer can also set the resource values for the
Packit b099d7
inherited classes to set attributes for this widget\&. To reference a
Packit b099d7
resource by name or by class in a \fB\&.Xdefaults\fP file, remove the \fBXmN\fP or
Packit b099d7
\fBXmC\fP prefix and use the remaining letters\&.
Packit b099d7
To specify one of the defined
Packit b099d7
values for a resource in a \fB\&.Xdefaults\fP file,
Packit b099d7
remove the \fBXm\fP prefix and use
Packit b099d7
the remaining letters (in either lowercase or uppercase, but include any
Packit b099d7
underscores between words)\&.
Packit b099d7
The codes in the access column indicate if the given resource can be
Packit b099d7
set at creation time (C),
Packit b099d7
set by using \fBXtSetValues\fP (S),
Packit b099d7
retrieved by using \fBXtGetValues\fP (G), or is not applicable (N/A)\&.
Packit b099d7
.PP
Packit b099d7
.TS
Packit b099d7
tab(?) box;
Packit b099d7
c s s s s
Packit b099d7
l| l| l| l| l.
Packit b099d7
\fBXmCommand Resource Set\fP
Packit b099d7
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNcommand?XmCTextString?XmString?""?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNcommandChangedCallback?XmCCallback?XtCallbackList?NULL?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNcommandEnteredCallback?XmCCallback?XtCallbackList?NULL?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNhistoryItems?XmCItems?XmStringTable?NULL?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNhistoryItemCount?XmCItemCount?int?0?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNhistoryMaxItems?XmCMaxItems?int?100?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNhistoryVisibleItemCount?XmCVisibleItemCount?int?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNpromptString?XmCPromptString?XmString?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
.TE
Packit b099d7
.IP "\fBXmNcommand\fP" 10
Packit b099d7
Contains the current command-line text\&. This is the \fBXmNtextString\fP
Packit b099d7
resource in SelectionBox, renamed for Command\&.
Packit b099d7
This resource can also be modified with
Packit b099d7
\fBXmCommandSetValue\fP and \fBXmCommandAppendValue\fP functions\&.
Packit b099d7
The command area is a Text widget\&.
Packit b099d7
.IP "\fBXmNcommandChangedCallback\fP" 10
Packit b099d7
Specifies the list of callbacks that is called after
Packit b099d7
each time the value of the command changes\&.
Packit b099d7
The callback reason is \fBXmCR_COMMAND_CHANGED\fP\&.
Packit b099d7
This is equivalent to the \fBXmNvalueChangedCallback\fP of the Text
Packit b099d7
widget, except that a pointer to an \fBXmCommandCallbackStructure\fP is
Packit b099d7
passed, and the structure\&'s \fIvalue\fP member contains the
Packit b099d7
\fBXmString\fR\&.
Packit b099d7
.IP "\fBXmNcommandEnteredCallback\fP" 10
Packit b099d7
Specifies the list of callbacks that is called
Packit b099d7
when a command is entered in the Command\&.
Packit b099d7
The callback reason is \fBXmCR_COMMAND_ENTERED\fP\&. A pointer to an
Packit b099d7
\fBXmCommandCallback\fP structure is passed\&.
Packit b099d7
.IP "\fBXmNhistoryItems\fP" 10
Packit b099d7
Lists \fBXmString\fR items that make up the contents
Packit b099d7
of the history list\&. This is the \fBXmNlistItems\fP resource in
Packit b099d7
SelectionBox, renamed for Command\&.
Packit b099d7
\fBXtGetValues\fP for this resource returns the list items themselves,
Packit b099d7
not a copy of the list items\&.
Packit b099d7
The application must not free the returned items\&.
Packit b099d7
.IP "\fBXmNhistoryItemCount\fP" 10
Packit b099d7
Specifies the number of \fBXmStrings\fP in \fBXmNhistoryItems\fP\&. This is
Packit b099d7
the \fBXmNlistItemCount\fP resource in SelectionBox, renamed for Command\&.
Packit b099d7
The value must not be negative\&.
Packit b099d7
.IP "\fBXmNhistoryMaxItems\fP" 10
Packit b099d7
Specifies the maximum number of items allowed in the history list\&. Once
Packit b099d7
this number is reached, an existing list item must be removed before
Packit b099d7
a new item can be added to the list\&. For each command entered, the first list
Packit b099d7
item is removed from the list, so the new command can be added to the list\&.
Packit b099d7
The value must be greater than 0 (zero)\&.
Packit b099d7
.IP "\fBXmNhistoryVisibleItemCount\fP" 10
Packit b099d7
Specifies the number of items in the history list that should be visible at
Packit b099d7
one time\&. In effect, it sets the height (in lines) of the history list
Packit b099d7
window\&. This is the \fBXmNlistVisibleItemCount\fP resource in SelectionBox,
Packit b099d7
renamed for Command\&.
Packit b099d7
The value must be greater than 0 (zero)\&.
Packit b099d7
The default is dynamic based on the height of the list\&.
Packit b099d7
.IP "\fBXmNpromptString\fP" 10
Packit b099d7
Specifies a prompt for the command line\&.
Packit b099d7
This is the \fBXmNselectionLabelString\fP
Packit b099d7
resource in SelectionBox, renamed for Command\&.
Packit b099d7
The default may vary depending on the value of the
Packit b099d7
\fBXmNlayoutDirection\fP
Packit b099d7
resource and the locale\&.
Packit b099d7
In the C locale the default is > (right angle bracket)\&.
Packit b099d7
.IP "" 10
Packit b099d7
Now that some default localized label strings are provided through
Packit b099d7
message catalogs for the children of composite widgets, the
Packit b099d7
\fBlabelString\fP resources
Packit b099d7
cannot be set on the child through default resource files\&.
Packit b099d7
Instead, the resource provided at the parent level must be used\&.
Packit b099d7
.SS "Inherited Resources"
Packit b099d7
.PP
Packit b099d7
Command inherits behavior and resources from the
Packit b099d7
superclasses described in the following tables\&.
Packit b099d7
For a complete description of each resource, refer to the
Packit b099d7
reference page for that superclass\&.
Packit b099d7
.PP
Packit b099d7
.TS
Packit b099d7
tab(?) box;
Packit b099d7
c s s s s
Packit b099d7
l| l| l| l| l.
Packit b099d7
\fBXmSelectionBox Resource Set\fP
Packit b099d7
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNapplyCallback?XmCCallback?XtCallbackList?NULL?N/A
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNapplyLabelString?XmCApplyLabelString?XmString?dynamic?N/A
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNcancelCallback?XmCCallback?XtCallbackList?NULL?N/A
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNcancelLabelString?XmCCancelLabelString?XmString?dynamic?N/A
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNchildPlacement?XmCChildPlacement?unsigned char?XmPLACE_ABOVE_SELECTION?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNdialogType?XmCDialogType?unsigned char?XmDIALOG_COMMAND?G
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNhelpLabelString?XmCHelpLabelString?XmString?dynamic?N/A
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNlistItemCount?XmCItemCount?int?0?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNlistItems?XmCItems?XmStringTable?NULL?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNlistLabelString?XmCListLabelString?XmString?NULL?N/A
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNlistVisibleItemCount?XmCVisibleItemCount?int?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNminimizeButtons?XmCMinimizeButtons?Boolean?False?N/A
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNmustMatch?XmCMustMatch?Boolean?False?N/A
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNnoMatchCallback?XmCCallback?XtCallbackList?NULL?N/A
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNokCallback?XmCCallback?XtCallbackList?NULL?N/A
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNokLabelString?XmCOkLabelString?XmString?dynamic?N/A
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNselectionLabelString?XmCSelectionLabelString?XmString?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNtextAccelerators?XmCTextAccelerators?XtAccelerators?default?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNtextColumns?XmCColumns?short?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNtextString?XmCTextString?XmString?""?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
.TE
Packit b099d7
.PP
Packit b099d7
.TS
Packit b099d7
tab(?) box;
Packit b099d7
c s s s s
Packit b099d7
l| l| l| l| l.
Packit b099d7
\fBXmBulletinBoard Resource Set\fP
Packit b099d7
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNallowOverlap?XmCAllowOverlap?Boolean?True?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNautoUnmanage?XmCAutoUnmanage?Boolean?False?N/A
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNbuttonFontList?XmCButtonFontList?XmFontList?dynamic?N/A
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNbuttonRenderTable?XmCButtonRenderTable?XmRenderTable?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNcancelButton?XmCWidget?Widget?NULL?N/A
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNdefaultButton?XmCWidget?Widget?NULL?N/A
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNdefaultPosition?XmCDefaultPosition?Boolean?False?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNdialogStyle?XmCDialogStyle?unsigned char?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNdialogTitle?XmCDialogTitle?XmString?NULL?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNfocusCallback?XmCCallback?XtCallbackList?NULL?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNlabelFontList?XmCLabelFontList?XmFontList?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNlabelRenderTable?XmCLabelRenderTable?XmRenderTable?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNmapCallback?XmCCallback?XtCallbackList?NULL?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNmarginHeight?XmCMarginHeight?Dimension?10?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNmarginWidth?XmCMarginWidth?Dimension?10?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNnoResize?XmCNoResize?Boolean?False?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNresizePolicy?XmCResizePolicy?unsigned char?XmRESIZE_NONE?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNshadowType?XmCShadowType?unsigned char?XmSHADOW_OUT?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNtextFontList?XmCTextFontList?XmFontList?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNtextRenderTable?XmCTextRenderTable?XmRenderTable?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNtextTranslations?XmCTranslations?XtTranslations?NULL?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNunmapCallback?XmCCallback?XtCallbackList?NULL?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
.TE
Packit b099d7
.PP
Packit b099d7
.TS
Packit b099d7
tab(?) box;
Packit b099d7
c s s s s
Packit b099d7
l| l| l| l| l.
Packit b099d7
\fBXmManager Resource Set\fP
Packit b099d7
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNbottomShadowColor?XmCBottomShadowColor?Pixel?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNbottomShadowPixmap?XmCBottomShadowPixmap?Pixmap?XmUNSPECIFIED_PIXMAP?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNforeground?XmCForeground?Pixel?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNhelpCallback?XmCCallback?XtCallbackList?NULL?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNhighlightColor?XmCHighlightColor?Pixel?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNhighlightPixmap?XmCHighlightPixmap?Pixmap?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNinitialFocus?XmCInitialFocus?Widget?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNlayoutDirection?XmCLayoutDirection?XmDirection?dynamic?CG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNnavigationType?XmCNavigationType?XmNavigationType?XmTAB_GROUP?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNpopupHandlerCallback?XmCCallback?XtCallbackList?NULL?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNshadowThickness?XmCShadowThickness?Dimension?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNstringDirection?XmCStringDirection?XmStringDirection?dynamic?CG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNtopShadowColor?XmCTopShadowColor?Pixel?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNtopShadowPixmap?XmCTopShadowPixmap?Pixmap?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNtraversalOn?XmCTraversalOn?Boolean?True?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNunitType?XmCUnitType?unsigned char?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNuserData?XmCUserData?XtPointer?NULL?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
.TE
Packit b099d7
.PP
Packit b099d7
.TS
Packit b099d7
tab(?) box;
Packit b099d7
c s s s s
Packit b099d7
l| l| l| l| l.
Packit b099d7
\fBComposite Resource Set\fP
Packit b099d7
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNchildren?XmCReadOnly?WidgetList?NULL?G
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNinsertPosition?XmCInsertPosition?XtOrderProc?NULL?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNnumChildren?XmCReadOnly?Cardinal?0?G
Packit b099d7
_?_?_?_?_?
Packit b099d7
.TE
Packit b099d7
.PP
Packit b099d7
.TS
Packit b099d7
tab(?) box;
Packit b099d7
c s s s s
Packit b099d7
l| l| l| l| l.
Packit b099d7
\fBCore Resource Set\fP
Packit b099d7
\fBName\fP?\fBClass\fP?\fBType\fP?\fBDefault\fP?\fBAccess\fP
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNaccelerators?XmCAccelerators?XtAccelerators?dynamic?N/A
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNancestorSensitive?XmCSensitive?Boolean?dynamic?G
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNbackground?XmCBackground?Pixel?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNbackgroundPixmap?XmCPixmap?Pixmap?XmUNSPECIFIED_PIXMAP?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNborderColor?XmCBorderColor?Pixel?XtDefaultForeground?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNborderPixmap?XmCPixmap?Pixmap?XmUNSPECIFIED_PIXMAP?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNborderWidth?XmCBorderWidth?Dimension?0?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNcolormap?XmCColormap?Colormap?dynamic?CG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNdepth?XmCDepth?int?dynamic?CG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNdestroyCallback?XmCCallback?XtCallbackList?NULL?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNheight?XmCHeight?Dimension?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNinitialResourcesPersistent?XmCInitialResourcesPersistent?Boolean?True?C
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNmappedWhenManaged?XmCMappedWhenManaged?Boolean?True?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNscreen?XmCScreen?Screen *?dynamic?CG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNsensitive?XmCSensitive?Boolean?True?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNtranslations?XmCTranslations?XtTranslations?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNwidth?XmCWidth?Dimension?dynamic?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNx?XmCPosition?Position?0?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
XmNy?XmCPosition?Position?0?CSG
Packit b099d7
_?_?_?_?_?
Packit b099d7
.TE
Packit b099d7
.SS "Callback Information"
Packit b099d7
.PP
Packit b099d7
A pointer to the following structure is passed to each callback:
Packit b099d7
.PP
Packit b099d7
.nf
Packit b099d7
typedef struct
Packit b099d7
{
Packit b099d7
        int \fIreason\fP;
Packit b099d7
        XEvent \fI* event\fP;
Packit b099d7
        XmString \fIvalue\fP;
Packit b099d7
        int \fIlength\fP;
Packit b099d7
} XmCommandCallbackStruct;
Packit b099d7
.fi
Packit b099d7
.IP "\fIreason\fP" 10
Packit b099d7
Indicates why the callback was invoked
Packit b099d7
.IP "\fIevent\fP" 10
Packit b099d7
Points to the \fBXEvent\fP that triggered the callback
Packit b099d7
.IP "\fIvalue\fP" 10
Packit b099d7
Specifies the \fBXmString\fR in the CommandArea
Packit b099d7
.IP "\fIlength\fP" 10
Packit b099d7
Specifies the size in bytes of the \fBXmString\fR value\&.
Packit b099d7
This member is obsolete and exists for compatibility with
Packit b099d7
earlier releases\&.
Packit b099d7
.SS "Translations"
Packit b099d7
.PP
Packit b099d7
\fBXmCommand\fP inherits translations from \fBXmSelectionBox\fP\&.
Packit b099d7
.SS "Accelerators"
Packit b099d7
.PP
Packit b099d7
The \fBXmNtextAccelerators\fP from \fBXmSelectionBox\fP are added to the Text
Packit b099d7
descendant of \fBXmCommand\fP\&.
Packit b099d7
.SS "Action Routines"
Packit b099d7
.PP
Packit b099d7
The \fBXmCommand\fP action routines are:
Packit b099d7
.IP "SelectionBoxUpOrDown(\fBPrevious|Next|First|Last\fP):" 10
Packit b099d7
When called with an argument of \fBPrevious\fP, or 0 (zero) for
Packit b099d7
compatibility,
Packit b099d7
selects the previous item in the history
Packit b099d7
list and replaces the text with that item\&.
Packit b099d7
.IP "" 10
Packit b099d7
When called with an argument of \fBNext\fP, or 1 for
Packit b099d7
compatibility, selects the next item in the history
Packit b099d7
list and replaces the text with that item\&.
Packit b099d7
.IP "" 10
Packit b099d7
When called with an argument of \fBFirst\fP, or 2 for
Packit b099d7
compatibility, selects the first item in the history
Packit b099d7
list and replaces the text with that item\&.
Packit b099d7
.IP "" 10
Packit b099d7
When called with an argument of \fBLast\fP, or 3 for
Packit b099d7
compatibility, selects the last item in the history
Packit b099d7
list and replaces the text with that item\&.
Packit b099d7
.IP "" 10
Packit b099d7
Calls the callbacks for \fBXmNcommandChangedCallback\fP\&.
Packit b099d7
.SS "Additional Behavior"
Packit b099d7
.PP
Packit b099d7
The Command widget has the following additional behavior:
Packit b099d7
.IP "\fB<Key>\fP\fB<osfCancel>\fP:" 10
Packit b099d7
If the parent of the Command is a manager, the event is passed to the parent\&.
Packit b099d7
.IP "\fB<Key>\fP\fB<osfActivate>\fP\ in\ Text:" 10
Packit b099d7
Calls the Text widget\&'s \fBXmNactivateCallback\fP callbacks\&.
Packit b099d7
If the text is empty, this action then returns\&.
Packit b099d7
Otherwise, if the history list has \fBXmNhistoryMaxItems\fP items, it
Packit b099d7
removes the first item in
Packit b099d7
the list\&.
Packit b099d7
It adds the text to the history list as the last item, clears the text,
Packit b099d7
and calls the \fBXmNcommandEnteredCallback\fP callbacks\&.
Packit b099d7
.IP "\fB<Key>\fP\ in\ Text:" 10
Packit b099d7
When any change is made to the text edit widget, this action
Packit b099d7
calls the callbacks for
Packit b099d7
\fBXmNcommandChangedCallback\fP\&.
Packit b099d7
.IP "\fB<BtnDown>\fP\fB(2+)\fP\ or\ \fB<Key>\fP\fB<osfActivate>\fP\ in\ List:" 10
Packit b099d7
Calls the List widget\&'s \fBXmNdefaultActionCallback\fP callbacks\&.
Packit b099d7
If the history list has \fBXmNhistoryMaxItems\fP items, this action
Packit b099d7
removes the first item in the list\&.
Packit b099d7
It adds the selected List item to the history list as the last item,
Packit b099d7
clears the text, and calls the \fBXmNcommandEnteredCallback\fP
Packit b099d7
callbacks\&.
Packit b099d7
.IP "\fB<FocusIn>\fP:" 10
Packit b099d7
Calls the callbacks for \fBXmNfocusCallback\fP\&.
Packit b099d7
.IP "\fB<MapWindow>\fP:" 10
Packit b099d7
When a Command that is the child of a DialogShell is mapped, this action
Packit b099d7
calls the callbacks for \fBXmNmapCallback\fP\&.
Packit b099d7
.IP "\fB<UnmapWindow>\fP:" 10
Packit b099d7
When a Command that is the child of a DialogShell is unmapped, this
Packit b099d7
action calls the
Packit b099d7
callbacks for \fBXmNunmapCallback\fP\&.
Packit b099d7
.SS "Virtual Bindings"
Packit b099d7
.PP
Packit b099d7
The bindings for virtual keys are vendor specific\&.
Packit b099d7
For information about bindings for virtual buttons and keys, see \fBVirtualBindings\fP(3)\&.
Packit b099d7
.SH "RELATED"
Packit b099d7
.PP
Packit b099d7
\fBComposite\fP(3), \fBConstraint\fP(3),
Packit b099d7
\fBCore\fP(3),
Packit b099d7
\fBXmBulletinBoard\fP(3),
Packit b099d7
\fBXmCommandAppendValue\fP(3),
Packit b099d7
\fBXmCommandError\fP(3),
Packit b099d7
\fBXmCommandGetChild\fP(3),
Packit b099d7
\fBXmCommandSetValue\fP(3),
Packit b099d7
\fBXmCreateCommand\fP(3),
Packit b099d7
\fBXmManager\fP(3),
Packit b099d7
\fBXmSelectionBox\fP(3),
Packit b099d7
\fBXmVaCreateCommand\fP(3), and
Packit b099d7
\fBXmVaCreateManagedCommand\fP(3)\&.