XmDataField - Online Linux Manual PageSection : library call
NAMEXmDataField — The DataField widget class
SYNOPSIS#include <Xm/DataF.h>
DESCRIPTIONThe 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. 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.
ClassesDataField inherits behavior, resources, and traits from Core, XmPrimitive, and XmTextField. The class pointer is xmDataFieldWidgetClass. The class name is XmDataField.
New ResourcesThe 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 .Xdefaults file, remove the XmN or XmC prefix and use the remaining letters. To specify one of the defined values for a resource in a .Xdefaults file, remove the Xm 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 XtSetValues (S), retrieved by using XtGetValues (G), or is not applicable (N/A). XmDataField Resource Set NameClassTypeDefaultAccess XmNalignmentXmCAlignmentunsigned charXmALIGNMENT_BEGINNINGCSG XmNautoFillXmCAutoFillBooleanTrueCSG XmNpictureXmCPictureStringNULLCSG XmNpictureErrorCallbackXmCCallbackXtCallbackListNULLC XmNvalidateCallbackXmCCallbackXtCallbackListNULLC XmNalignment When set to XmALIGNMENT_END, the widget aligns all its text with the right hand side of the input area. XmNautoFill 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. XmNpicture 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. Character interpretations The following lists and defines the characters you can use in a picture, and how the DataField widget interprets them. # Any numeric digit ? Case insensitive letter & Uppercase letter (forces lowercase to uppercase) @ Case insensitive character ! Uppercase character ; Interpret the following character literally * Repeat the following character some number of times [] Characters within brackets are optional {} Characters within braces are grouped , Alternative values Other characters are interpreted literally. Set XmNpicture to NULL to disable regular expression processing. The DataField widget is cleared whenever the XmNpicture resource is changed. XmNpictureErrorCallback 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. XmNvalidateCallback 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.
Inherited ResourcesDataField 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. XmTextFieldResource Set NameClassTypeDefaultAccess 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 XmPrimitive Resource Set NameClassTypeDefaultAccess XmNbottomShadowColorXmCBottomShadowColorPixeldynamicCSG XmNbottomShadowPixmapXmCBottomShadowPixmapPixmapXmUNSPECIFIED_PIXMAPCSG XmNconvertCallbackXmCCallbackXtCallbackListNULLC XmNforegroundXmCForegroundPixeldynamicCSG XmNhelpCallbackXmCCallbackXtCallbackListNULLC XmNhighlightColorXmCHighlightColorPixeldynamicCSG XmNhighlightOnEnterXmCHighlightOnEnterBooleanFalseCSG XmNhighlightPixmapXmCHighlightPixmapPixmapdynamicCSG XmNhighlightThicknessXmCHighlightThicknessDimension2CSG XmNlayoutDirectionXmCLayoutDirectionXmDirectiondynamicCG XmNnavigationTypeXmCNavigationTypeXmNavigationTypeXmTAB_GROUPCSG XmNpopupHandlerCallbackXmCCallbackXtCallbackListNULLC XmNshadowThicknessXmCShadowThicknessDimension2CSG XmNtopShadowColorXmCTopShadowColorPixeldynamicCSG XmNtopShadowPixmapXmCTopShadowPixmapPixmapdynamicCSG XmNtraversalOnXmCTraversalOnBooleanTrueCSG XmNunitTypeXmCUnitTypeunsigned chardynamicCSG XmNuserDataXmCUserDataXtPointerNULLCSG Core Resource Set NameClassTypeDefaultAccess XmNacceleratorsXmCAcceleratorsXtAcceleratorsdynamicCSG XmNancestorSensitiveXmCSensitiveBooleandynamicG XmNbackgroundXmCBackgroundPixeldynamicCSG XmNbackgroundPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG XmNborderColorXmCBorderColorPixelXtDefaultForegroundCSG XmNborderPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG XmNborderWidthXmCBorderWidthDimension0CSG XmNcolormapXmCColormapColormapdynamicCG XmNdepthXmCDepthintdynamicCG XmNdestroyCallbackXmCCallbackXtCallbackListNULLC XmNheightXmCHeightDimensiondynamicCSG XmNinitialResourcesPersistentXmCInitialResourcesPersistentBooleanTrueC XmNmappedWhenManagedXmCMappedWhenManagedBooleanTrueCSG XmNscreenXmCScreenScreen *dynamicCG XmNsensitiveXmCSensitiveBooleanTrueCSG XmNtranslationsXmCTranslationsXtTranslationsdynamicCSG XmNwidthXmCWidthDimensiondynamicCSG XmNxXmCPositionPosition0CSG XmNyXmCPositionPosition0CSG
TranslationsXmDataField inherits translations from XmTextField.
Callback RoutinesA pointer to the following structure is passed to the list of routines for the XmNvalidateCallback: typedef struct _XmDataFieldCallbackStruct {
Widget w; /* The XmDataField */
String text; /* Proposed string */
Boolean accept; /* Accept return value, for validation */
} XmDataFieldCallbackStruct;
RELATEDCore(3), XmCreateDataField(3), XmPrimitive(3), XmTextFieldSetString(3), XmTextFieldSetStringWcs(3), XmVaCreateDataField(3), and XmVaCreateManagedDataField(3).
VERSIONThis manual page documents the XmDataField widget shipped in Motif version 2.2
AUTHOR
(c) 2002 by Integrated Computer Solutions, Inc. Edited by Kevin Cook. 0
Johanes Gumabo
Data Size : 74,058 byte
man-XmDataField.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 193,283
Visitor ID : :
Visitor IP : 3.137.221.114 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.