| Widget Class | xmLabelWidgetClass |
| Public Header | <Xm/Label.h> |
| Private Header | <Xm/LabelP.h> |
| Class Hierarchy | Core:: XmPrimitive:: XmLabel |
There is a corresponding Label Gadget(Under Construction).
| Name | Class | Type | Default | Access |
| XmNaccelerator | XmCAccelerator | XmString | XmUNSPECIFIED | CSG |
| XmNacceleratorText | XmCAcceleratorText | XmString | XmUNSPECIFIED | CSG |
| XmNalignment | XmCAlignment | unsigned char | XmALIGNMENT_CENTER | CSG |
| XmNfontList | XmCFontList | XmRFontlist | XmUNSPECIFIED | CSG |
| XmNlabelInsensitivePixmap | XmCLabelInsensitivePixmap | XmRPixmap | XmUNSPECIFIED_PIXMAP | CSG |
| XmNlabelPixmap | XmCLabelPixmap | XmRPixmap | XmUNSPECIFIED_PIXMAP | CSG |
| XmNlabelString | XmCLabelString | XmString | XmUNSPECIFIED | CSG |
| XmNlabelType | XmCLabelType | XmRLabelType | XmSTRING | CSG |
| XmNmarginBottom | XmCMarginBottom | XmRDimension | 0 | CSG |
| XmNmarginHeight | XmCMarginHeight | XmRDimension | 2 | CSG |
| XmNmarginLeft | XmCMarginLeft | XmRDimension | 0 | CSG |
| XmNmarginRight | XmCMarginRight | XmRDimension | 0 | CSG |
| XmNmarginTop | XmCMarginTop | XmRDimension | 0 | CSG |
| XmNmarginWidth | XmCMarginWidth | XmRDimension | 2 | CSG |
| XmNmnemonicCharSet | XmCMnemonicCharSet | XmString | XmFONTLIST_DEFAULT_TAG | CSG |
| XmNrecomputeSize | XmCRecomputeSize | XmRBoolean | True | CSG |
| XmNstringDirection | XmCStringDirection | XmStringDirection | NULL | CSG |
| XmNtraversalOn | XmCTraversalOn | Boolean | False | CSG |
| XmNhighlightOnEnter | XmCHighlightOnEnter | Boolean | False | CSG |
XmNlabelType is XmSTRING.
XmNsensitive is
False and XmNlabelType is XmPIXMAP.
XmNlabelType is
XmPIXMAP.
XmNlabelType is
XmSTRING. If this resource is undefined and XmNlabelType
is XmSTRING, XmNlabelString is set to the widget name.
XmNlabelString or the pixmap specified by
XmNlabelPixmap. Valid values are:
XmNlabelString resource that matches
the XmNmnemonic(using the XmNmnemonicCharSet)
exactly is underlined. If XmNmnemonic does not match
any of the characters, no characters are underlined.
Under Construction
XmNmnemonic
resource is defined.
XmNlabelType is XmSTRING. Valid values are:
If this resource is not specified, its value depends on the parent
widget's type. If the parent widget is a manager, like
BulletinBoard or
RowColumn, the resource value is
inherited from the parent. Otherwise it is set to
XmSTRING_DIRECTION_L_TO_R.
| Name | Type | Default | Access |
| XmNforeground | Pixel | _XmForegroundColorDefault | CSG |
| XtNbackground | Pixel | _XmBackgroundColorDefault | CSG |
| XmNbottomShadowColor | Pixel | _XmBottomShadowColorDefault | CSG |
| XmNbottomShadowPixmap | Pixmap | XmUNSPECIFIED_PIXMAP | CSG |
| XmNtopShadowColor | Pixel | _XmTopShadowColorDefault | CSG |
| XmNtopShadowPixmap | Pixmap | XmUNSPECIFIED_PIXMAP | CSG |
| XmNshadowThickness | Dimension | 2 | CSG |
| XmNhighlightColor | Pixel | _XmHighlightColorDefault | CSG |
| XmNhighlightOnEnter | Boolean | False | CSG |
| XmNhighlightPixmap | Pixmap | XmUNSPECIFIED_PIXMAP | CSG |
| XmNhighlightThickness | Dimension | 2 | CSG |
| XmNnavigationType | XmNavigationType | XmNONE | CSG |
| XmNtraversalOn | Boolean | True | CSG |
| XmNunitType | unsigned char | 0 | CSG |
| XmNuserData | XtPointer | NULL | CSG |
| XmNhelpCallback | XtCallbackList | NULL | C |
| Name | Type | Default | Access |
| XmNaccelerators | XmString | XmUNSPECIFIED | CSG |
| XmNancestorSensitive | Boolean | TRUE | G |
| XmNbackground | Pixel | _XmBackgroundColorDefault | CSG |
| XmNbackgroundPixmap | Pixmap | XmUNSPECIFIED_PIXMAP | CSG |
| XmNborderColor | Pixel | Black | CSG |
| XmNborderPixmap | Pixmap | XmUNSPECIFIED_PIXMAP | CSG |
| XmNborderWidth | int | 1 | CSG |
| XmNcolormap | Colormap | XmUNSPECIFIED | CG |
| XmNdepth | int | 1 | CSG |
| XmNdestroyCallback | XtCallbackList | NULL | C |
| XmNheight | Dimension | 0 | CSG |
| XmNmappedWhenManaged | Boolean | TRUE | CSG |
| XmNscreen | Screen * | 0 | CG |
| XmNsensitive | Boolean | True | CSG |
| XmNtranslations | XtTranslations | NULL | CSG |
| XmNwidth | Dimension | 0 | CSG |
| XmNx | Position | 0 | CSG |
| XmNy | Position | 0 | CSG |
| <EnterWindow>: | Enter() | |||
| <LeaveWindow>: | Leave() | |||
| <Btn2Down>: | ProcessDrag() | |||
| <Key>osfActivate: | PrimitiveParentActivate() | |||
| <Key>osfCancel: | PrimitiveParentCancel() | |||
| <Key>osfHelp: | Help() | |||
| <Key>Return: | PrimtiveParentActivate() |
XmCreateLabel convenience function:Widget label = XmCreateLabel(parent, "Less is Mo", NULL, 0); XtManageChild(label);Creation Using
XtVaCreateManagedWidget:Widget label = XtVaCreateManagedWidget( "Less is Mo", xmLabelWidgetClass, parent, NULL);