XmMenuShell man page on Ultrix

Man page or keyword search:  
man Server   3690 pages
apropos Keyword Search (all sections)
Output format
Ultrix logo
[printable version]

XmMenuShell(3X)			   OSF/Motif		       XmMenuShell(3X)

NAME
       XmMenuShell - The MenuShell widget class

SYNOPSIS
       #include <Xm/MenuShell.h>

DESCRIPTION
       The  MenuShell  widget  is  a  custom  OverrideShell  widget.  An Over‐
       rideShell widget bypasses mwm when displaying itself.  It  is  designed
       specifically to contain Popup or Pulldown MenuPanes.

       Most  application  writers  never encounter this widget if they use the
       menu-system convenience functions, XmCreatePopupMenu  or	 XmCreatePull‐
       downMenu,  to  create  a	 Popup	or Pulldown MenuPane.  The convenience
       functions automatically create a MenuShell widget as the parent of  the
       MenuPane.   However,  if	 the  convenience  functions are not used, the
       application programmer must create the  required	 MenuShell.   In  this
       case,  it is important to note that the parent of the MenuShell depends
       on the type of menu system being built.	If the MenuShell  is  for  the
       top-level  Popup	 MenuPane,  the	 MenuShell's parent must be the widget
       from which the Popup MenuPane is popped up.  If the MenuShell is for  a
       MenuPane that is pulled down from a Popup or another Pulldown MenuPane,
       the MenuShell's parent must be the Popup or Pulldown MenuPane.  If  the
       MenuShell  is  for  a  MenuPane that is pulled down from a MenuBar, the
       MenuShell's parent must be the MenuBar.	If  the	 MenuShell  is	for  a
       Pulldown	 MenuPane in an OptionMenu, the MenuShell's parent must be the
       OptionMenu's parent.

       Setting XmNheight, XmNwidth, or XmNborderWidth for either  a  MenuShell
       or  its	child  sets that resource to the same value in both the parent
       and the child.  An application should always  specify  these  resources
       for the child, not the parent.

       For  the	 managed  child of a MenuShell, regardless of the value of the
       shell's XmNallowShellResize, setting XmNx or XmNy sets the  correspond‐
       ing  resource  of  the  parent but does not change the child's position
       relative to the parent.	XtGetValues  for  the  child's	XmNx  or  XmNy
       yields  the  value  of the corresponding resource in the parent.	 The x
       and y coordinates of the child's upper left outside corner relative  to
       the  parent's upper left inside corner are both zero minus the value of
       XmNborderWidth.

   Classes
       MenuShell inherits behavior and resources from Core, Composite,	Shell,
       and OverrideShell classes.

       The class pointer is xmMenuShellWidgetClass.

       The class name is XmMenuShell.

   New Resources
       MenuShell  overrides  the  XmNallowShellResize  resource in Shell.  The
       following table defines a set of widget resources used by the  program‐
       mer  to	specify data.  The programmer can also set the resource values
       for the inherited classes to set attributes for this widget.  To refer‐
       ence  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 pre‐
       fix 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).

			      XmMenuShell Resource Set
		──────────────────────────────────────────────────────
		Name			   Default	       Access
		      Class			 Type
		──────────────────────────────────────────────────────
		──────────────────────────────────────────────────────
		XmNbuttonFontList	   dynamic	       CSG
		      XmCButtonFontList		  XmFontList
		──────────────────────────────────────────────────────
		XmNdefaultFontList	   dynamic	       CG
		      XmCDefaultFontList	  XmFontList
		──────────────────────────────────────────────────────
		XmNlabelFontList	   dynamic	       CSG
		      XmCLabelFontList		  XmFontList
		──────────────────────────────────────────────────────
       Specifies the font list used for MenuShell's  button  descendants.   If
       this  value  is	NULL at initialization and if the value of XmNdefault‐
       FontList is not NULL, XmNbuttonFontList is initialized to the value  of
       XmNdefaultFontList.   If	 the value of XmNdefaultFontList is NULL, XmN‐
       buttonFontList is initialized by looking up the parent hierarchy of the
       widget  for an ancestor that is a subclass of the XmBulletinBoard, Ven‐
       dorShell, or XmMenuShell widget class.  If such an ancestor  is	found,
       XmNbuttonFontList is initialized to the XmNbuttonFontList of the ances‐
       tor  widget.  If no such ancestor is found, the default is  implementa‐
       tion  dependent.	 Specifies a default font list for MenuShell's descen‐
       dants.  This resource is obsolete and  exists  for  compatibility  with
       earlier releases.  It has been replaced by XmNbuttonFontList and XmNla‐
       belFontList.  Specifies	the  font  list	 used  for  MenuShell's	 label
       descendants  (Labels  and LabelGadgets).	 If this value is NULL at ini‐
       tialization and if the value of XmNdefaultFontList is not NULL,	XmNla‐
       belFontList  is initialized to the value of XmNdefaultFontList.	If the
       value of XmNdefaultFontList is NULL, XmNlabelFontList is initialized by
       looking up the parent hierarchy of the widget for an ancestor that is a
       subclass of the XmBulletinBoard,	 VendorShell,  or  XmMenuShell	widget
       class.	If  such an ancestor is found, XmNlabelFontList is initialized
       to the XmNlabelFontList of the ancestor widget.	If no such ancestor is
       found, the default is implementation dependent.

   Inherited Resources
       MenuShell  inherits  behavior  and  resources from the following super‐
       classes.	 For a complete description of each resource, refer to the man
       page  for that superclass.  The following tables define a set of widget
       resources used by the programmer to specify data.  The  programmer  can
       set  the	 resource values for these 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).

				 Shell Resource Set
       ───────────────────────────────────────────────────────────────────────
       Name			       Default			       Access
	     Class			     Type
       ───────────────────────────────────────────────────────────────────────
       ───────────────────────────────────────────────────────────────────────
       XmNallowShellResize	       True			       G
	     XmCAllowShellResize	      Boolean
       ───────────────────────────────────────────────────────────────────────
       XmNcreatePopupChildProc	       NULL			       CSG

	     XmCCreatePopupChildProc	      XtCreatePopupChildProc
       ───────────────────────────────────────────────────────────────────────
       XmNgeometry		       NULL			       CSG
	     XmCGeometry		      String
       ───────────────────────────────────────────────────────────────────────
       XmNoverrideRedirect	       True			       CSG
	     XmCOverrideRedirect	      Boolean
       ───────────────────────────────────────────────────────────────────────
       XmNpopdownCallback	       NULL			       C
	     XmCCallback		      XtCallbackList
       ───────────────────────────────────────────────────────────────────────
       XmNpopupCallback		       NULL			       C
	     XmCCallback		      XtCallbackList
       ───────────────────────────────────────────────────────────────────────
       XmNsaveUnder		       True			       CSG
	     XmCSaveUnder		      Boolean
       ───────────────────────────────────────────────────────────────────────
       XmNvisual		       CopyFromParent		       CSG
	     XmCVisual			      Visual *
       ───────────────────────────────────────────────────────────────────────

			       Composite Resource Set
		──────────────────────────────────────────────────────
		Name			  Default	       Access
		      Class			Type
		──────────────────────────────────────────────────────
		──────────────────────────────────────────────────────
		XmNchildren		  NULL		       G
		      XmCReadOnly		 WidgetList
		──────────────────────────────────────────────────────
		XmNinsertPosition	  NULL		       CSG
		      XmCInsertPosition		 XtOrderProc
		──────────────────────────────────────────────────────
		XmNnumChildren		  0		       G
		      XmCReadOnly		 Cardinal
		──────────────────────────────────────────────────────

				 Core Resource Set
	─────────────────────────────────────────────────────────────────────
	Name				      Default		      Access
	      Class				    Type
	─────────────────────────────────────────────────────────────────────
	─────────────────────────────────────────────────────────────────────
	XmNaccelerators			      dynamic		      CSG
	      XmCAccelerators			     XtAccelerators
	─────────────────────────────────────────────────────────────────────
	XmNancestorSensitive		      dynamic		      G
	      XmCSensitive			     Boolean
	─────────────────────────────────────────────────────────────────────
	XmNbackground			      dynamic		      CSG
	      XmCBackground			     Pixel
	─────────────────────────────────────────────────────────────────────
	XmNbackgroundPixmap		      XmUNSPECIFIED_PIXMAP    CSG
	      XmCPixmap				     Pixmap
	─────────────────────────────────────────────────────────────────────
	XmNborderColor			      XtDefaultForeground     CSG
	      XmCBorderColor			     Pixel
	─────────────────────────────────────────────────────────────────────
	XmNborderPixmap			      XmUNSPECIFIED_PIXMAP    CSG
	      XmCPixmap				     Pixmap
	─────────────────────────────────────────────────────────────────────
	XmNborderWidth			      1			      CSG
	      XmCBorderWidth			     Dimension
	─────────────────────────────────────────────────────────────────────
	XmNcolormap			      dynamic		      CG

	      XmCColormap			     Colormap
	─────────────────────────────────────────────────────────────────────
	XmNdepth			      dynamic		      CG
	      XmCDepth				     int
	─────────────────────────────────────────────────────────────────────
	XmNdestroyCallback		      NULL		      C
	      XmCCallback			     XtCallbackList
	─────────────────────────────────────────────────────────────────────
	XmNheight			      dynamic		      CSG
	      XmCHeight				     Dimension
	─────────────────────────────────────────────────────────────────────
	XmNinitialResourcesPersistent	      True		      C
	      XmCInitialResourcesPersistent	     Boolean
	─────────────────────────────────────────────────────────────────────
	XmNmappedWhenManaged		      True		      CSG
	      XmCMappedWhenManaged		     Boolean
	─────────────────────────────────────────────────────────────────────
	XmNscreen			      dynamic		      CG
	      XmCScreen				     Screen *
	─────────────────────────────────────────────────────────────────────
	XmNsensitive			      True		      CSG
	      XmCSensitive			     Boolean
	─────────────────────────────────────────────────────────────────────
	XmNtranslations			      dynamic		      CSG
	      XmCTranslations			     XtTranslations
	─────────────────────────────────────────────────────────────────────
	XmNwidth			      dynamic		      CSG
	      XmCWidth				     Dimension
	─────────────────────────────────────────────────────────────────────
	XmNx				      0			      CSG
	      XmCPosition			     Position
	─────────────────────────────────────────────────────────────────────
	XmNy				      0			      CSG
	      XmCPosition			     Position
	─────────────────────────────────────────────────────────────────────

   Translations
       The  XmMenuShell translations are listed below.	These translations may
       not   directly	correspond   to	  a   translation   table.     BSelect
       Press: ClearTraversal() BSelect Release:MenuShellPopdownDone()

   Action Routines
       The  XmMenuShell action routines are described below: Disables keyboard
       traversal for the menu, enables mouse traversal, and unposts any	 menus
       posted  by this menu.  Unposts the menu hierarchy and, when the shell's
       keyboard focus policy is XmEXPLICIT, restores focus to the widget  that
       had  the focus before the menu system was entered.  In a toplevel Pull‐
       down MenuPane from a MenuBar, unposts the  menu,	 disarms  the  MenuBar
       CascadeButton  and  the	MenuBar,  and, when the shell's keyboard focus
       policy is XmEXPLICT, restores keyboard focus to the widget that had the
       focus  before  the  MenuBar  was entered.  In other Pulldown MenuPanes,
       unposts the menu.

       In a Popup MenuPane, unposts the menu, and, when the  shell's  keyboard
       focus  policy  is XmEXPLICT, restores keyboard focus to the widget from
       which the menu was posted.

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

RELATED INFORMATION
       Composite(3X), Core(3X), OverrideShell(3X), Shell(3X), XmCreate‐
       MenuShell(3X), XmCreatePopupMenu(3X), XmCreatePulldownMenu(3X), XmRow‐
       Column(3X)

							       XmMenuShell(3X)
[top]

List of man pages available for Ultrix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net