Blob Blame History Raw
.TH "XmDataField" "library call"
.SH NAME
\fBXmDataField\fP \(em The DataField widget class
.SH SYNOPSIS 
.nf
#include <Xm/DataF\&.h>
.fi
.SH DESCRIPTION
The DataField widget is a Data Presentation widget that handles display and entry of data as text.
The DataField widget is a subclass of the XmTextField widget intended for data entry 
applications. In addition to all of the normal XmTextField functionality, it supports regular 
expression-based parsing and acceptance/rejection of its input through the XmNpicture resource, 
and right justification through the XmNalignment resource. 
.PP
The DataField widget provides added capability by supporting several types of validation: a 
DataField widget containing an invalid value will not give-up focus; the user must enter a
correct value before proceeding to another field.
.SS "Classes"
.PP
DataField inherits behavior, resources, and traits from \fBCore\fP,
\fBXmPrimitive\fP, and \fBXmTextField\fP\&.
.PP
The class pointer is \fBxmDataFieldWidgetClass\fP\&.
.PP
The class name is \fBXmDataField\fP\&.
.SS "New Resources"
.PP
The following table defines a set of widget resources used by the
programmer to specify data\&. The programmer can also set the resource
values for the inherited classes to set attributes for this widget\&.
To reference a resource by name or by class in a \fB\&.Xdefaults\fP file,
remove the \fBXmN\fP or \fBXmC\fP prefix and use the remaining letters\&.
To specify one of the defined values for a resource in a \fB\&.Xdefaults\fP
file, remove the \fBXm\fP prefix and use the remaining letters (in
either lowercase or uppercase, but include any underscores between
words)\&. The codes in the access column indicate if the given resource
can be set at creation time (C), set by using \fBXtSetValues\fP
(S), retrieved by using \fBXtGetValues\fP (G), or is not
applicable (N/A)\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmDataField Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNalignmentXmCAlignmentunsigned charXmALIGNMENT_BEGINNINGCSG
_____
XmNautoFillXmCAutoFillBooleanTrueCSG
_____
XmNpictureXmCPictureStringNULLCSG
_____
XmNpictureErrorCallbackXmCCallbackXtCallbackListNULLC
_____
XmNvalidateCallbackXmCCallbackXtCallbackListNULLC
_____
.TE
.IP "\fBXmNalignment\fP" 10
When set to XmALIGNMENT_END, the widget aligns all its text with the right hand side of the 
input area.
.IP "\fBXmNautoFill\fP" 10
When set to True, the widget "auto-fills" its contents when it can determine that the next 
character in the string must be a particular literal\&. For instance, the picture "###-####" 
automatically inserts a '-' character after receiving three numeric digits as input\&.
.IP "\fBXmNpicture\fP" 10
Specifies a picture for data entry in the widget. A picture acts as a template that formats
the value you enter in a field. An example would be the US Phone Number picture: (###)###-####.
The picture is used to convert characters entered into the field to a formatted value\&.
.RS
.IP "\fBCharacter interpretations\fP" 10
.PP
The following lists and defines the characters you can use in a picture, and how the
DataField widget interprets them.
.IP \fI#\fP
Any numeric digit
.IP \fI?\fP
Case insensitive letter
.IP \fI&\fP
Uppercase letter (forces lowercase to uppercase)
.IP \fI@\fP
Case insensitive character
.IP \fI!\fP
Uppercase character
.IP \fI;\fP
Interpret the following character literally
.IP \fI*\fP
Repeat the following character some number of times
.IP \fI[]\fP
Characters within brackets are optional
.IP \fI{}\fP
Characters within braces are grouped
.IP \fI,\fP
Alternative values
.IP ""
Other characters are interpreted literally.
.IP ""
Set XmNpicture to NULL to disable regular expression processing. The DataField widget is 
cleared whenever the XmNpicture resource is changed.
.RE
.IP "\fBXmNpictureErrorCallback\fP" 10
Specifies a list of callbacks to be called when the XmDataField widget determines that data is 
being entered that does not match the format specified by the XmNpicture resource.
.IP "\fBXmNvalidateCallback\fP" 10
Specifies a list of callbacks to be called when data has been entered in the XmDataField widget 
and the user has moved out of the XmDataField widget (usually by pressing the Tab key). The 
callbacks can reject the movement of focus. 
.PP
.SS "Inherited Resources"
.PP
DataField inherits behavior and resources from the
superclasses described in the following tables\&.
For a complete description of each resource, refer to the
reference page for that superclass\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmTextFieldResource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNactivateCallbackXmCCallbackXtCallbackListNULLC
_____
XmNblinkRateXmCBlinkRateint500CSG
_____
XmNcolumnsXmCColumnsshortdynamicCSG
_____
XmNcursorPositionXmCCursorPositionXmTextPosition0CSG
_____
XmNcursorPositionVisibleXmCCursorPositionVisibleBooleandynamicCSG
_____
XmNdestinationCallbackXmCCallbackXtCallbackListNULLC
_____
XmNeditableXmCEditableBooleanTrueCSG
_____
XmNfocusCallbackXmCCallbackXtCallbackListNULLC
_____
XmNfontListXmCFontListXmFontListdynamicCSG
_____
XmNgainPrimaryCallbackXmCCallbackXtCallbackListNULLC
_____
XmNlosePrimaryCallbackXmCCallbackXtCallbackListNULLC
_____
XmNlosingFocusCallbackXmCCallbackXtCallbackListNULLC
_____
XmNmarginHeightXmCMarginHeightDimension5CSG
_____
XmNmarginWidthXmCMarginWidthDimension5CSG
_____
XmNmaxLengthXmCMaxLengthintlargest integerCSG
_____
XmNmodifyVerifyCallbackXmCCallbackXtCallbackListNULLC
_____
XmNmodifyVerifyCallbackWcsXmCCallbackXtCallbackListNULLC
_____
XmNmotionVerifyCallbackXmCCallbackXtCallbackListNULLC
_____
XmNpendingDeleteXmCPendingDeleteBooleanTrueCSG
_____
XmNrenderTableXmCRenderTableXmRenderTabledynamicCSG
_____
XmNresizeWidthXmCResizeWidthBooleanFalseCSG
_____
XmNselectionArrayXmCSelectionArrayXtPointerdefault arrayCSG
_____
XmNselectionArrayCountXmCSelectionArrayCountint3CSG
_____
XmNselectThresholdXmCSelectThresholdint5CSG
_____
XmNvalueXmCValueString""CSG
_____
XmNvalueChangedCallbackXmCCallbackXtCallbackListNULLC
_____
XmNvalueWcsXmCValueWcswchar_t *(wchar_t *)""CSG
_____
XmNverifyBellXmCVerifyBellBooleandynamicCSG
_____
.TE
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmPrimitive Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNbottomShadowColorXmCBottomShadowColorPixeldynamicCSG
_____
XmNbottomShadowPixmapXmCBottomShadowPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNconvertCallbackXmCCallbackXtCallbackListNULLC
_____
XmNforegroundXmCForegroundPixeldynamicCSG
_____
XmNhelpCallbackXmCCallbackXtCallbackListNULLC
_____
XmNhighlightColorXmCHighlightColorPixeldynamicCSG
_____
XmNhighlightOnEnterXmCHighlightOnEnterBooleanFalseCSG
_____
XmNhighlightPixmapXmCHighlightPixmapPixmapdynamicCSG
_____
XmNhighlightThicknessXmCHighlightThicknessDimension2CSG
_____
XmNlayoutDirectionXmCLayoutDirectionXmDirectiondynamicCG
_____
XmNnavigationTypeXmCNavigationTypeXmNavigationTypeXmTAB_GROUPCSG
_____
XmNpopupHandlerCallbackXmCCallbackXtCallbackListNULLC
_____
XmNshadowThicknessXmCShadowThicknessDimension2CSG
_____
XmNtopShadowColorXmCTopShadowColorPixeldynamicCSG
_____
XmNtopShadowPixmapXmCTopShadowPixmapPixmapdynamicCSG
_____
XmNtraversalOnXmCTraversalOnBooleanTrueCSG
_____
XmNunitTypeXmCUnitTypeunsigned chardynamicCSG
_____
XmNuserDataXmCUserDataXtPointerNULLCSG
_____
.TE
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBCore Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNacceleratorsXmCAcceleratorsXtAcceleratorsdynamicCSG
_____
XmNancestorSensitiveXmCSensitiveBooleandynamicG
_____
XmNbackgroundXmCBackgroundPixeldynamicCSG
_____
XmNbackgroundPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNborderColorXmCBorderColorPixelXtDefaultForegroundCSG
_____
XmNborderPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNborderWidthXmCBorderWidthDimension0CSG
_____
XmNcolormapXmCColormapColormapdynamicCG
_____
XmNdepthXmCDepthintdynamicCG
_____
XmNdestroyCallbackXmCCallbackXtCallbackListNULLC
_____
XmNheightXmCHeightDimensiondynamicCSG
_____
XmNinitialResourcesPersistentXmCInitialResourcesPersistentBooleanTrueC
_____
XmNmappedWhenManagedXmCMappedWhenManagedBooleanTrueCSG
_____
XmNscreenXmCScreenScreen *dynamicCG
_____
XmNsensitiveXmCSensitiveBooleanTrueCSG
_____
XmNtranslationsXmCTranslationsXtTranslationsdynamicCSG
_____
XmNwidthXmCWidthDimensiondynamicCSG
_____
XmNxXmCPositionPosition0CSG
_____
XmNyXmCPositionPosition0CSG
_____
.TE
.SS "Translations"
.PP
XmDataField inherits translations from XmTextField\&.
.PP
.SH Callback Routines
A pointer to the following structure is passed to the list of routines for the XmNvalidateCallback:
.nf
typedef struct _XmDataFieldCallbackStruct {
	Widget   w;       /* The XmDataField */   
	String   text;    /* Proposed string */   
	Boolean  accept;  /* Accept return value, for validation */
} XmDataFieldCallbackStruct;
.fi
.SH "RELATED"
.PP
\fBCore\fP(3),
\fBXmCreateDataField\fP(3),
\fBXmPrimitive\fP(3),
\fBXmTextFieldSetString\fP(3),
\fBXmTextFieldSetStringWcs\fP(3),
\fBXmVaCreateDataField\fP(3), and
\fBXmVaCreateManagedDataField\fP(3)\&.
.SH VERSION
This manual page documents the XmDataField widget shipped in Motif version 2.2
.SH AUTHOR
.br
(c) 2002 by Integrated Computer Solutions, Inc.
.LP
Edited by Kevin Cook.
.PP