*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> XmPrimitive (3)              
Title
Content
Arch
Section
 

Contents


 XmPrimitive(library call)                         XmPrimitive(library call)




 NAME    [Toc]    [Back]
      XmPrimitive - The Primitive widget class

 SYNOPSIS    [Toc]    [Back]
      #include <Xm/Xm.h>

 DESCRIPTION    [Toc]    [Back]
      Primitive is a widget class used as a supporting superclass for other
      widget classes. It handles border drawing and highlighting, traversal
      activation and deactivation, and various callback lists needed by
      Primitive widgets.  Primitive and all its subclasses hold the
      XmQTcareParentVisual trait.

    Data Transfer Behavior    [Toc]    [Back]
      Primitive has no widget class conversion or destination procedure.
      Subclasses and the XmNconvertCallback procedures are responsible for
      any conversion of selections.  Subclasses and the subclass
      XmNdestinationCallback procedures are responsible for any data
      transfers to the widget.

    Classes    [Toc]    [Back]
      Primitive inherits behavior, resources, and traits from Core.

      The class pointer is xmPrimitiveWidgetClass.

      The class name is XmPrimitive.

    New Resources    [Toc]    [Back]
      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 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).















                                    - 1 -       Formatted:  January 24, 2005






 XmPrimitive(library call)                         XmPrimitive(library call)




      ____________________________________________________________________________________________________
      |                                     XmPrimitive Resource Set                                      |
      |Name                      Class                   Type               Default                Access |
      |________________________|_______________________|__________________|______________________|________|
      |XmNbottomShadowColor    | XmCBottomShadowColor  | Pixel            | dynamic              | CSG    |
      |________________________|_______________________|__________________|______________________|________|
      |XmNbottomShadowPixmap   | XmCBottomShadowPixmap | Pixmap           | XmUNSPECIFIED_PIXMAP | CSG    |
      |________________________|_______________________|__________________|______________________|________|
      |XmNconvertCallback      | XmCCallback           | XtCallbackList   | NULL                 | C      |
      |________________________|_______________________|__________________|______________________|________|
      |XmNforeground           | XmCForeground         | Pixel            | dynamic              | CSG    |
      |________________________|_______________________|__________________|______________________|________|
      |XmNhelpCallback         | XmCCallback           | XtCallbackList   | NULL                 | C      |
      |________________________|_______________________|__________________|______________________|________|
      |XmNhighlightColor       | XmCHighlightColor     | Pixel            | dynamic              | CSG    |
      |________________________|_______________________|__________________|______________________|________|
      |XmNhighlightOnEnter     | XmCHighlightOnEnter   | Boolean          | False                | CSG    |
      |________________________|_______________________|__________________|______________________|________|
      |XmNhighlightPixmap      | XmCHighlightPixmap    | Pixmap           | dynamic              | CSG    |
      |________________________|_______________________|__________________|______________________|________|
      |XmNhighlightThickness   | XmCHighlightThickness | Dimension        | 2                    | CSG    |
      |________________________|_______________________|__________________|______________________|________|
      |XmNlayoutDirection      | XmCLayoutDirection    | XmDirection      | dynamic              | CG     |
      |________________________|_______________________|__________________|______________________|________|
      |XmNnavigationType       | XmCNavigationType     | XmNavigationType | XmNONE               | CSG    |
      |________________________|_______________________|__________________|______________________|________|
      |XmNpopupHandlerCallback | XmCCallback           | XtCallbackList   | NULL                 | C      |
      |________________________|_______________________|__________________|______________________|________|
      |XmNshadowThickness      | XmCShadowThickness    | Dimension        | 2                    | CSG    |
      |________________________|_______________________|__________________|______________________|________|
      |XmNtopShadowColor       | XmCTopShadowColor     | Pixel            | dynamic              | CSG    |
      |________________________|_______________________|__________________|______________________|________|
      |XmNtopShadowPixmap      | XmCTopShadowPixmap    | Pixmap           | dynamic              | CSG    |
      |________________________|_______________________|__________________|______________________|________|
      |XmNtraversalOn          | XmCTraversalOn        | Boolean          | True                 | CSG    |
      |________________________|_______________________|__________________|______________________|________|
      |XmNunitType             | XmCUnitType           | unsigned char    | dynamic              | CSG    |
      |________________________|_______________________|__________________|______________________|________|
      |XmNuserData             | XmCUserData           | XtPointer        | NULL                 | CSG    |
      |________________________|_______________________|__________________|______________________|________|
      |________________________|_______________________|__________________|______________________|________|

      XmNbottomShadowColor    [Toc]    [Back]
                Specifies the color to use to draw the bottom and right
                sides of the border shadow.  This color is used if the
                XmNtopShadowPixmap resource is unspecified.

      XmNbottomShadowPixmap    [Toc]    [Back]
                Specifies the pixmap to use to draw the bottom and right
                sides of the border shadow.




                                    - 2 -       Formatted:  January 24, 2005






 XmPrimitive(library call)                         XmPrimitive(library call)




      XmNconvertCallback    [Toc]    [Back]
                Specifies a list of callbacks called when the widget is
                asked to convert a selection.  The type of the structure
                whose address is passed to these callbacks is
                XmConvertCallbackStruct.  The reason is XmCR_OK.

      XmNforeground    [Toc]    [Back]
                Specifies the foreground drawing color used by Primitive
                widgets.

      XmNhelpCallback    [Toc]    [Back]
                Specifies the list of callbacks that is called when the help
                key is pressed. The reason sent by the callback is
                XmCR_HELP.

      XmNhighlightColor    [Toc]    [Back]
                Specifies the color of the highlighting rectangle.  This
                color is used if the highlight pixmap resource is
                XmUNSPECIFIED_PIXMAP.

      XmNhighlightOnEnter    [Toc]    [Back]
                Specifies if the highlighting rectangle is drawn when the
                cursor moves into the widget.  If the shell's focus policy
                is XmEXPLICIT, this resource is ignored, and the widget is
                highlighted when it has the focus.  If the shell's focus
                policy is XmPOINTER and if this resource is True, the
                highlighting rectangle is drawn when the cursor moves into
                the widget.  If the shell's focus policy is XmPOINTER and if
                this resource is False, the highlighting rectangle is not
                drawn when the the cursor moves into the widget.  The
                default is False.

      XmNhighlightPixmap    [Toc]    [Back]
                Specifies the pixmap used to draw the highlighting
                rectangle.

      XmNhighlightThickness    [Toc]    [Back]
                Specifies the thickness of the highlighting rectangle.

      XmNlayoutDirection    [Toc]    [Back]
                Specifies the direction in which components of the primitive
                (including strings) are laid out. The values are of type
                XmDirection. If the widget's parent is a primitive or shell,
                the value is inherited from the widget's parent. Otherwise,
                it is inherited from the closest ancestor vendor or menu
                shell. Refer to the XmDirection(3) reference page for the
                possible direction values.

      XmNnavigationType    [Toc]    [Back]
                Determines whether the widget is a tab group.




                                    - 3 -       Formatted:  January 24, 2005






 XmPrimitive(library call)                         XmPrimitive(library call)




                XmNONE    Indicates that the widget is not a tab group.

                XmTAB_GROUP    [Toc]    [Back]
                          Indicates that the widget is a tab group, unless
                          the XmNnavigationType of another widget in the
                          hierarchy is XmEXCLUSIVE_TAB_GROUP.

                XmSTICKY_TAB_GROUP    [Toc]    [Back]
                          Indicates that the widget is a tab group, even if
                          the XmNnavigationType of another widget in the
                          hierarchy is XmEXCLUSIVE_TAB_GROUP.

                XmEXCLUSIVE_TAB_GROUP    [Toc]    [Back]
                          Indicates that the widget is a tab group and that
                          widgets in the hierarchy whose XmNnavigationType
                          is XmTAB_GROUP are not tab groups.

                          When a parent widget has an XmNnavigationType of
                          XmEXCLUSIVE_TAB_GROUP, traversal of non-tab-group
                          widgets within the group is based on the order of
                          those widgets in their parent's XmNchildren list.

                          When the XmNnavigationType of any widget in a
                          hierarchy is XmEXCLUSIVE_TAB_GROUP, traversal of
                          tab groups in the hierarchy proceeds to widgets in
                          the order in which their XmNnavigationType
                          resources were specified as XmEXCLUSIVE_TAB_GROUP
                          or XmSTICKY_TAB_GROUP, whether by creating the
                          widgets with that value, by calling XtSetValues,
                          or by calling XmAddTabGroup.

      XmNpopupHandlerCallback    [Toc]    [Back]
                Allows the application to control which popup menu will be
                automatically posted. The reason can either be XmCR_POST or
                XmCR_REPOST:

                XmCR_POST Indicates that this is a regular posting request.

                XmCR_REPOST    [Toc]    [Back]
                          Indicates that the menu was just unposted and that
                          this callback was invoked on a replay.

                This callback uses the XmPopupHandlerCallbackStruct
                structure to pass information.

      XmNshadowThickness    [Toc]    [Back]
                Specifies the size of the drawn border shadow.

      XmNtopShadowColor    [Toc]    [Back]
                Specifies the color to use to draw the top and left sides of
                the border shadow.  This color is used if the



                                    - 4 -       Formatted:  January 24, 2005






 XmPrimitive(library call)                         XmPrimitive(library call)




                XmNtopShadowPixmap resource is unspecified.  If a default
                top shadow pixmap exists, it will need to be removed for the
                XmNtopShadowColor to take effect.

      XmNtopShadowPixmap    [Toc]    [Back]
                Specifies the pixmap to use to draw the top and left sides
                of the border shadow.  A Primitive top shadow pixmap is
                created in two situations. In either of these situations, a
                default 50-foreground top shadow pixmap is created.

                   +  If the Primitive top shadow color is the same as the
                      Core background pixel color.

                   +  If the depth of the screen is only one.

                For example, if a widget with the same top shadow and
                background color is created, a default shadow pixmap is
                generated. Such a pixmap needs to be removed for the
                XmNtopShadowColor resource to take effect.

      XmNtraversalOn    [Toc]    [Back]
                Specifies if traversal is activated for this widget. In
                CascadeButton and CascadeButtonGadget, this resource is
                forced to True unless the parent is an OptionMenu.

      XmNunitType    [Toc]    [Back]
                Provides the basic support for resolution independence.  It
                defines the type of units a widget uses with sizing and
                positioning resources.  If the widget's parent is a subclass
                of XmManager and if the XmNunitType resource is not
                explicitly set, it defaults to the unit type of the parent
                widget.  If the widget's parent is not a subclass of
                XmManager, the resource has a default unit type of XmPIXELS.

                The unit type can also be specified in resource files, with
                the following format:

      <floating value><unit>

                where:

                unit      is <" ", pixels, inches, centimeters, millimeters,
                          points, font units>

                pixels    is <pix, pixel, pixels>

                inches    is <in, inch, inches>

                centimeter
                          is <cm, centimeter, centimeters>




                                    - 5 -       Formatted:  January 24, 2005






 XmPrimitive(library call)                         XmPrimitive(library call)




                millimeters
                          is <mm, millimeter, millimeters>

                points    is <pt, point, points>

                font units
                          is <fu, font_unit, font_units>

                float     is {"+"|"-"}{{<"0"-"9">*}.}<"0"-"9">*

                          Note that the type Dimension must always be
                          positive.

                For example,

      xmfonts*XmMainWindow.height: 10.4cm
      *PostIn.width: 3inches

                XmNunitType can have the following values:

                XmPIXELS  All values provided to the widget are treated as
                          normal pixel values.

                XmMILLIMETERS    [Toc]    [Back]
                          All values provided to the widget are treated as
                          normal millimeter values.

                Xm100TH_MILLIMETERS    [Toc]    [Back]
                          All values provided to the widget are treated as
                          1/100 of a millimeter.

                XmCENTIMETERS    [Toc]    [Back]
                          All values provided to the widget are treated as
                          normal centimeter values.

                XmINCHES  All values provided to the widget are treated as
                          normal inch values.

                Xm1000TH_INCHES    [Toc]    [Back]
                          All values provided to the widget are treated as
                          1/1000 of an inch.

                XmPOINTS  All values provided to the widget are treated as
                          normal point values. A point is a unit used in
                          text processing applications and is defined as
                          1/72 of an inch.

                Xm100TH_POINTS    [Toc]    [Back]
                          All values provided to the widget are treated as
                          1/100 of a point. A point is a unit used in text
                          processing applications and is defined as 1/72 of



                                    - 6 -       Formatted:  January 24, 2005






 XmPrimitive(library call)                         XmPrimitive(library call)




                          an inch.

                XmFONT_UNITS    [Toc]    [Back]
                          All values provided to the widget are treated as
                          normal font units. A font unit has horizontal and
                          vertical components.  These are the values of the
                          XmScreen resources XmNhorizontalFontUnit and
                          XmNverticalFontUnit.

                Xm100TH_FONT_UNITS    [Toc]    [Back]
                          All values provided to the widget are treated as
                          1/100 of a font unit.  A font unit has horizontal
                          and vertical components.  These are the values of
                          the XmScreen resources XmNhorizontalFontUnit and
                          XmNverticalFontUnit.

      XmNuserData    [Toc]    [Back]
                Allows the application to attach any necessary specific data
                to the widget.  It is an internally unused resource.

    Dynamic Color Defaults    [Toc]    [Back]
      The foreground, background, top shadow, bottom shadow, and highlight
      color resources are dynamically defaulted.  If no color data is
      specified, the colors are automatically generated. On a single-plane
      system, a black and white color scheme is generated. Otherwise, four
      colors are generated, which display the correct shading for the 3-D
      visuals.  If the background is the only color specified for a widget,
      the top shadow and bottom shadow colors are generated to give the 3-D
      appearance.  Foreground and highlight colors are generated to provide
      sufficient contrast with the background color.

      Colors are generated only at creation. Resetting the background
      through XtSetValues does not regenerate the other colors.
      XmChangeColor can be used to recalculate all associated colors based
      on a new background color.

    Inherited Resources    [Toc]    [Back]
      Primitive inherits behavior and resources from the superclass
      described in the following table.  For a complete description of each
      resource, refer to the reference page for that superclass.














                                    - 7 -       Formatted:  January 24, 2005






 XmPrimitive(library call)                         XmPrimitive(library call)




      ________________________________________________________________________________________________________________
      |                                              Core Resource Set                                                |
      |Name                            Class                           Type             Default                Access |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNaccelerators               | XmCAccelerators               | XtAccelerators | dynamic              | CSG    |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNancestorSensitive          | XmCSensitive                  | Boolean        | dynamic              | G      |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNbackground                 | XmCBackground                 | Pixel          | dynamic              | CSG    |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNbackgroundPixmap           | XmCPixmap                     | Pixmap         | XmUNSPECIFIED_PIXMAP | CSG    |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNborderColor                | XmCBorderColor                | Pixel          | XtDefaultForeground  | CSG    |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNborderPixmap               | XmCPixmap                     | Pixmap         | XmUNSPECIFIED_PIXMAP | CSG    |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNborderWidth                | XmCBorderWidth                | Dimension      | 0                    | CSG    |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNcolormap                   | XmCColormap                   | Colormap       | dynamic              | CG     |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNdepth                      | XmCDepth                      | int            | dynamic              | CG     |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNdestroyCallback            | XmCCallback                   | XtCallbackList | NULL                 | C      |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNheight                     | XmCHeight                     | Dimension      | dynamic              | CSG    |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNinitialResourcesPersistent | XmCInitialResourcesPersistent | Boolean        | True                 | C      |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNmappedWhenManaged          | XmCMappedWhenManaged          | Boolean        | True                 | CSG    |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNscreen                     | XmCScreen                     | Screen *       | dynamic              | CG     |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNsensitive                  | XmCSensitive                  | Boolean        | True                 | CSG    |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNtranslations               | XmCTranslations               | XtTranslations | dynamic              | CSG    |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNwidth                      | XmCWidth                      | Dimension      | dynamic              | CSG    |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNx                          | XmCPosition                   | Position       | 0                    | CSG    |
      |______________________________|_______________________________|________________|______________________|________|
      |XmNy                          | XmCPosition                   | Position       | 0                    | CSG    |
      |______________________________|_______________________________|________________|______________________|________|
      |______________________________|_______________________________|________________|______________________|________|

    Callback Information    [Toc]    [Back]
      A pointer to the following structure is passed to each callback for
      XmNhelpCallback:

      typedef struct
      {
              int reason;



                                    - 8 -       Formatted:  January 24, 2005






 XmPrimitive(library call)                         XmPrimitive(library call)




              XEvent * event;
      } XmAnyCallbackStruct;

      reason    Indicates why the callback was invoked.  For this callback,
                reason is set to XmCR_HELP.

      event     Points to the XEvent that triggered the callback.

      A pointer to the following callback structure is passed to the
      XmNconvertCallback procedures:

      typedef struct
      {
              int reason;
              XEvent *event;
              Atom selection;
              Atom target;
              XtPointer source_data;
              XtPointer location_data;
              int flags;
              XtPointer parm;
              int parm_format;
              unsigned long parm_length;
              Atom parm_type;
              int status;
              XtPointer value;
              Atom type;
              int format;
              unsigned long length;
      } XmConvertCallbackStruct;

      reason    Indicates why the callback was invoked.

      event     Points to the XEvent that triggered the callback.  It can be
                NULL.

      selection Indicates the selection for which conversion is being
                requested.  Possible values are CLIPBOARD, PRIMARY,
                SECONDARY, and _MOTIF_DROP.

      target    Indicates the conversion target.

      source_data
                Contains information about the selection source.  When the
                selection is _MOTIF_DROP, source_data is the DragContext.
                Otherwise, it is NULL.

      location_data
                Contains information about the location of data to be
                converted.  If the value is NULL, the data to be transferred
                consists of the widget's current selection.  Otherwise, the



                                    - 9 -       Formatted:  January 24, 2005






 XmPrimitive(library call)                         XmPrimitive(library call)




                type and interpretation of the value are specific to the
                widget class.

      flags     Indicates the status of the conversion. Following are the
                possible values:

                XmCONVERTING_NONE    [Toc]    [Back]
                          This flag is currently unused.

                XmCONVERTING_PARTIAL    [Toc]    [Back]
                          The target widget was able to be converted, but
                          some data was lost.

                XmCONVERTING_SAME    [Toc]    [Back]
                          The conversion target is the source of the data to
                          be transferred.

                XmCONVERTING_TRANSACT    [Toc]    [Back]
                          This flag is currently unused.

      parm      Contains parameter data for this target.  If no parameter
                data exists, the value is NULL.

                When selection is CLIPBOARD and target is
                _MOTIF_CLIPBOARD_TARGETS or
                _MOTIF_DEFERRED_CLIPBOARD_TARGETS, the value is the
                requested operation (XmCOPY, XmMOVE, or XmLINK).

      parm_format
                Specifies whether the data in parm should be viewed as a
                list of char, short, or long quantities.  Possible values
                are 0 (when parm is NULL), 8 (when the data in parm should
                be viewed as a list of chars), 16 (when the data in parm
                should be viewed as a list of shorts), or 32 (when the data
                in parm should be viewed as a list of longs).  Note that
                parm_format symbolizes a data type, not the number of bits
                in each list element.  For example, on some machines, a
                parm_format of 32 means that the data in parm should be
                viewed as a list of 64-bit quantities, not 32-bit
                quantities.

      parm_length
                Specifies the number of elements of data in parm, where each
                element has the size specified by parm_format.  When parm is
                NULL, the value is 0.

      parm_type Specifies the parameter type of parm.

      status    An IN/OUT member that specifies the status of the
                conversion.  The initial value is XmCONVERT_DEFAULT.  The
                callback procedure can set this member to one of the



                                   - 10 -       Formatted:  January 24, 2005






 XmPrimitive(library call)                         XmPrimitive(library call)




                following values:

                XmCONVERT_DEFAULT    [Toc]    [Back]
                          This value means that the widget class conversion
                          procedure, if any, is called after the callback
                          procedures return.  If the widget class conversion
                          procedure produces any data, it overwrites the
                          data provided by the callback procedures in the
                          value member.

                XmCONVERT_MERGE    [Toc]    [Back]
                          This value means that the widget class conversion
                          procedure, if any, is called after the callback
                          procedures return.  If the widget class conversion
                          procedure produces any data, it appends its data
                          to the data provided by the callback procedures in
                          the value member.  This value is intended for use
                          with targets that result in lists of data, such as
                          TARGETS.

                XmCONVERT_DONE    [Toc]    [Back]
                          This value means that the callback procedure has
                          successfully finished the conversion.  The widget
                          class conversion procedure, if any, is not called
                          after the callback procedures return.

                XmCONVERT_REFUSE    [Toc]    [Back]
                          This value means that the callback procedure has
                          terminated the conversion process without
                          completing the requested conversion.  The widget
                          class conversion procedure, if any, is not called
                          after the callback procedures return.

      value     An IN/OUT parameter that contains any data that the callback
                procedure produces as a result of the conversion.  The
                initial value is NULL.  If the callback procedure sets this
                member, it must ensure that the type, format, and length
                members correspond to the data in value.  The callback
                procedure is responsible for allocating memory when it sets
                this member.  The toolkit frees this memory when it is no
                longer needed.

      type      An IN/OUT parameter that indicates the type of the data in
                the value member.  The initial value is INTEGER.

      format    An IN/OUT parameter that specifies whether the data in value
                should be viewed as a list of char, short, or long
                quantities.  The initial value is 8.  The callback procedure
                can set this member to 8 (for a list of char), 16 (for a
                list of short), or 32 (for a list of long).




                                   - 11 -       Formatted:  January 24, 2005






 XmPrimitive(library call)                         XmPrimitive(library call)




      length    An IN/OUT member that specifies the number of elements of
                data in value, where each element has the size symbolized by
                format.  The initial value is 0.

      A pointer to the following structure is passed to each callback for
      XmNpopupHandlerCallback:

      typedef struct
      {
              int reason;
              XEvent * xevent;
              Widget menuToPost;
              Boolean postIt;
              Widget target;
      } XmPopupHandlerCallbackStruct;

      reason    Indicates why the callback was invoked.

      xevent    Points to the XEvent that triggered the handler.

      menuToPost
                Specifies the popup menu that the menu system believes
                should be posted. The application may modify this field.

      postIt    Indicates whether the posting process should continue. The
                application may modify this field.

      target    Specifies the most specific widget or gadget that the menu
                sytem found from the event that matches the event.

    Translations    [Toc]    [Back]
      The XmPrimitive translations are listed below.

      Note that for buttons in menus, altering translations in #override or
      #augment mode is undefined.

      The following key names are listed in the X standard key event
      translation table syntax.  This format is the one used by Motif to
      specify the widget actions corresponding to a given key.  A brief
      overview of the format is provided under VirtualBindings(3).  For a
      complete description of the format, please refer to the X Toolkit
      Instrinsics Documentation.

      :<Key><osfActivate>:
                PrimitiveParentActivate()

      :<Key><osfCancel>:
                PrimitiveParentCancel()

      :<Key><osfBeginLine>:
                PrimitiveTraverseHome()



                                   - 12 -       Formatted:  January 24, 2005






 XmPrimitive(library call)                         XmPrimitive(library call)




      :<Key><osfUp>:
                PrimitiveTraverseUp()

      :<Key><osfDown>:
                PrimitiveTraverseDown()

      :<Key><osfLeft>:
                PrimitiveTraverseLeft()

      :<Key><osfRight>:
                PrimitiveTraverseRight()


      ~s ~m ~a <Key>Return:
                PrimitiveParentActivate()

      s ~m ~a <Key>Tab:
                PrimitivePrevTabGroup()

      ~m ~a <Key>Tab:
                PrimitiveNextTabGroup()

      <Key><osfHelp>:
                PrimitiveHelp()

    Action Routines    [Toc]    [Back]
      The XmPrimitive action routines are

      PrimitiveHelp():
                Calls the callbacks for XmNhelpCallback if any exist. If
                there are no help callbacks for this widget, this action
                calls the help callbacks for the nearest ancestor that has
                them.

      PrimitiveNextTabGroup():
                This action depends on the value of the Display resource
                XmNenableButtonTab. When XmNenableButtonTab is False
                (default), this action traverses to the first item in the
                next tab group. If the current tab group is the last entry
                in the tab group list, it wraps to the beginning of the tab
                group list.

                When XmNenableButtonTab is True, this action moves to the
                next item within the current tab group, unless it is the
                last item in the tab group. When the item is the last in the
                group, the action traverses to the first item in the next
                tab group. The XmNenableButtonTab behavior applies only to
                PushButton, ArrowButton, and DrawnArrow.

      PrimitiveParentActivate():
                If the parent is a manager, passes the KActivate event
                received by the widget to the parent.


                                   - 13 -       Formatted:  January 24, 2005






 XmPrimitive(library call)                         XmPrimitive(library call)




      PrimitiveParentCancel():
                If the parent is a manager, passes the KCancel event
                received by the widget to the parent.

      PrimitivePrevTabGroup():
                This action depends on the value of the Display resource
                XmNenableButtonTab. When XmNenableButtonTab is False
                (default), this action traverses to the first item in the
                previous tab group. If the beginning of the tab group list
                is reached, it wraps to the end of the tab group list.

                When XmNenableButtonTab is True, this action moves to the
                previous item within the current tab group unless it is the
                first item in the tab group. When the item is the first in
                the group, the action traverses to the first item in the
                previous tab group. The XmNenableButtonTab behavior applies
                only PushButton, ArrowButton, and DrawnButton.

      PrimitiveTraverseDown():
                Traverses to the next item below the current widget in the
                current tab group, wrapping if necessary.  The wrapping
                direction depends on the layout direction of the widget tab
                group.

      PrimitiveTraverseHome():
                Traverses to the first widget or gadget in the current tab
                group.

      PrimitiveTraverseLeft():
                Traverses to the next item to the left of the current widget
                in the current tab group, wrapping if necessary.  The
                wrapping direction depends on the layout direction of the
                widget tab group.

      PrimitiveTraverseNext():
                Traverses to the next item in the current tab group,
                wrapping if necessary.  The wrapping direction depends on
                the layout direction of the widget tab group.

      PrimitiveTraversePrev():
                Traverses to the previous item in the current tab group,
                wrapping if necessary.  The wrapping direction depends on
                the layout direction of the widget tab group.

      PrimitiveTraverseRight():
                Traverses to the next item to the right of the current
                gadget in the current tab group, wrapping if necessary.  The
                wrapping direction depends on the layout direction of the
                widget tab group.





                                   - 14 -       Formatted:  January 24, 2005






 XmPrimitive(library call)                         XmPrimitive(library call)




      PrimitiveTraverseUp():
                Traverses to the next item above the current gadget in the
                current tab group, wrapping if necessary.  The wrapping
                direction depends on the layout direction of the widget tab
                group.

    Additional Behavior    [Toc]    [Back]
      This widget has the following additional behavior:

      <FocusIn>:
                If the shell's keyboard focus policy is XmEXPLICIT,
                highlights the widget and gives it the focus

      <FocusOut>:
                If the shell's keyboard focus policy is XmEXPLICIT,
                unhighlights the widget and removes the focus

    Virtual Bindings    [Toc]    [Back]
      The bindings for virtual keys are vendor specific.  For information
      about bindings for virtual buttons and keys, see VirtualBindings(3).

 RELATED    [Toc]    [Back]
      Core(3), XmDirection(3), XmChangeColor(3), and XmScreen(3).


                                   - 15 -       Formatted:  January 24, 2005
[ Back ]
 Similar pages
Name OS Title
XmAddTabGroup HP-UX A function that adds a manager or a primitive widget to the list of tab groups
XmAddTabGroup IRIX A function that adds a manager or a primitive widget to the list of tab groups
XmAddTabGroup Tru64 A function that adds a manager or a primitive widget to the list of tab groups
XmComboBox HP-UX The ComboBox widget class
tmselectionbox IRIX the SelectionBox widget class
tmscrolledwindow IRIX the ScrolledWindow widget class
tmscrollbar IRIX the ScrollBar widget class
tmscale IRIX the Scale widget class
tmrowcolumn IRIX the RowColumn widget class
tmpushbutton IRIX the ArrowButton widget class
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service