Name

ExmTabButton — The TabButton widget class demonstration widget

Synopsis

#include <Exm/TabB.h>

DESCRIPTION

ExmTabButton is a demonstration widget. OSF provides this widget solely to teach programmers how to write their own Motif widgets. OSF does not support this widget in any way.

The source code for the ExmTabButton widget illustrates how to do the following:

  • Use the XmQTjoinSide trait

  • Use several Xme drawing functions

ExmTabButton is an instantiable widget. ExmTabButton is a subclass of the ExmCommandButton widget, which is itself a subclass of the ExmString widget. Therefore, ExmTabButton inherits all of ExmString's resources for rendering compound strings.

When a user activates an ExmTabButton widget, the widget calls the callback procedure associated with the XmNactivateCallback resource.

Classes

ExmTabButton inherits behavior and resources from Core, XmPrimitive, ExmSimple, ExmString, and ExmCommandButton.

The class pointer is exmTabButtonWidgetClass.

The class name is ExmTabButton.

New Resources

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 .Xdefaults file, remove the XmN, ExmN, XmC or ExmC prefix and use the remaining letters. To specify one of the defined values for a resource in a .Xdefaults file, remove the Xm or Exm 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).

ExmTabButton Resource Set
NameClassTypeDefaultAccess
ExmNopenSideExmCOpenSideExmROpenSideXmLEFTCSG

ExmNopenSide 

Specifies the side of the child widget that is to be joined to the manager. ExmNopenSide must be one of the following: XmNONE, XmLEFT, XmRIGHT, XmTOP, or XmBOTTOM. For example, if ExmNopenSide is set to XmLEFT, then the left side of the ExmTabButton will be affixed to the right side of the manager widget. XmNONE specifies that the ExmTabButton will not be affixed to its parent. The parent of the ExmTabButton typically overrides the value of the ExmNopenSide resource.

Inherited Resources

TabButton inherits behavior and resources from the following superclasses. For a complete description of each resource, refer to the reference page for that superclass.

ExmCommandButton Resource Set
NameClassTypeDefaultAccess
XmNactivateCallbackXmCCallbackXtCallbackListNULLC

ExmString Resource Set
NameClassTypeDefaultAccess
ExmNcompoundStringExmCCompoundStringXmStringNULLCSG
XmNalignmentXmCAlignmentunsigned charXmALIGNMENT_CENTERCSG
XmNrecomputeSizeXmCRecomputeSizeBooleanTrueCSG
XmNrenderTableXmCRenderTableXmRenderTabledynamicCSG

ExmSimple Resource Set
NameClassTypeDefaultAccess
ExmNsimpleShapeExmCSimpleShapeunsigned charExmSHAPE_OVALCSG
XmNmarginHeightXmCMarginHeightDimension4CSG
XmNmarginWidthXmCMarginWidthDimension4CSG

XmPrimitive Resource Set
NameClassTypeDefaultAccess
XmNbottomShadowColorXmCBottomShadowColorPixeldynamicCSG
XmNbottomShadowPixmapXmCBottomShadowPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
XmNconvertCallbackXmCCallbackXtCallbackListNULLC
XmNforegroundXmCForegroundPixeldynamicCSG
XmNhelpCallbackXmCCallbackXtCallbackListNULLC
XmNhighlightColorXmCHighlightColorPixeldynamicCSG
XmNhighlightOnEnterXmCHighlightOnEnterBooleanFalseCSG
XmNhighlightPixmapXmCHighlightPixmapPixmapdynamicCSG
XmNhighlightThicknessXmCHighlightThicknessDimension2CSG
XmNlayoutDirectionXmCLayoutDirectionXmDirectiondynamicCG
XmNnavigationTypeXmCNavigationTypeXmNavigationTypeXmNONECSG
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

Translations

ExmTabButton inherits all the translations of its superclass, ExmCommandButton. ExmTabButton does not provide any additional translations beyond those defined by ExmCommandButton.

Action Routines

ExmTabButton provides no action routines of its own.

RELATED

Core(3) and XmPrimitive(3).