Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XmQTmenuSavvy(3X) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     XmQTmenuSavvy(3X)         UNIX System V         XmQTmenuSavvy(3X)



     NAME
          XmQTmenuSavvy - A widget holding this trait can become a
          menu child

     SYNOPSIS
          #include <Xm/MenuT.h>

          typedef struct {
                    int                      version;
                    XmMenuSavvyDisableProc        disableCallback;
                    XmMenuSavvyGetAcceleratorProc      getAccelerator;
                    XmMenuSavvyGetMnemonicProc         getMnemonic;
                    XmMenuSavvyGetActivateCBNameProc        getActivateCBName;
          } XmMenuSavvyTraitRec, *XmMenuSavvyTrait;
          void (*XmMenuSavvyDisableProc)(
          Widget,
          XtActivateState,
          char *(*XmMenuSavvyGetAcceleratorProc)(
          Widget,
          Keysym (*XmMenuSavvyGetMnemonicProc)(
          Widget);
          char *(*XmMenuSavvyGetActivateCBNameProc)(void)

     VERSION
          This page documents Motif 2.1.

     DESCRIPTION
          Menu parent widgets (like XmRowColumn) examine their
          children for the XmQTmenuSavvy trait.  Only those child
          widgets holding the XmQTmenuSavvy trait can become menu
          children.

          The following standard Motif primitive widgets hold this
          trait:

             ⊕  XmLabel

             ⊕  XmLabelGadget

             ⊕  XmPushButton

             ⊕  XmPushButtonGadget

             ⊕  XmSeparator

             ⊕  XmSeparatorGadget

             ⊕  XmToggleButton

             ⊕  XmToggleButtonGadget

             ⊕  XmCascadeButton



     Page 1                                          (printed 1/22/99)





     XmQTmenuSavvy(3X)         UNIX System V         XmQTmenuSavvy(3X)



             ⊕  XmCascadeButtonGadget

             ⊕  XmDrawnButton

          Among the standard Motif manager widgets, only
          XmRowColumnexamines its children for this trait.

        The disableCallback Trait Method
          void disableCallback(
          Widget childWidget,
          XtActivateState enabledisable);

          The disableCallback trait method allows the menu parent
          (typically, the XmRowColumn widget) to enable or disable the
          activate callback associated with the child.
          XmRowColumncalls this trait method when its XmNentryCallback
          resource is set to a value other than NULL.

          childWidget
                    Specifies the child widget that holds this trait.

          enable_disable
                    Specifies whether to enable or disable the
                    activate callback method associated with the child
                    widget. There are two possible values for this
                    argument: XmENABLECALLBACK or XmDISABLECALLBACK.
                    XmENABLECALLBACK enables the activate callback
                    associated with childWidget; XmDISABLECALLBACK
                    disables it.

        The getAccelerator Trait Method
          char *getAccelerator(
          Widget childWidget);

          The getAccelerator trait method returns the accelerator
          associated with childWidget.

          childWidget
                    Specifies a menu child widget.

          This trait method returns the accelerator associated with
          childWidget. If there is no accelerator associated with
          childWidget, getAccelerator returns NULL.

        The getMnemonic Trait Method
          Keysym getMnemonic(
          Widget childWidget);

          The getMnemonic trait method returns the mnemonic associated
          with childWidget.

          childWidget



     Page 2                                          (printed 1/22/99)





     XmQTmenuSavvy(3X)         UNIX System V         XmQTmenuSavvy(3X)



                    Specifies a menu child widget.

          This trait method returns the mnemonic associated with
          childWidget. If there is no mnemonic associated with
          childWidget, getMnemonic returns NULL.

        The getActivateCBName Trait Method
          char *getActivateCBName(void)

          The getActivateCBName trait method returns a pointer to a
          static string.  This string names the resource that contains
          the activation callback list for this widget.  For example,
          this trait method will return activateCallback for
          XmPushButton and valueChangedCallback for XmToggleButton.

     RELATED
          XmRowColumn(3), XmLabel(3), XmPushButton(3),
          XmDrawnButton(3), XmCascadeButton(3), XmToggleButton(3),
          XmPushButtonGadget(3), XmToggleButtonGadget(3),
          XmCascadeButtonGadget(3), and ExmMenuButton(3).



































     Page 3                                          (printed 1/22/99)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026