Specifications
Athena Widget Set libXaw 1.0.7
3) XtSetValues calls may come from the application while the Sme is highlighted, and if the Set-
Values method returns True, will result in an expose event. The SimpleMenu may later call
the menu entry’s unhighlight procedure. However, due to the asynchronous nature of X, the
expose event generated by XtSetValues will come after this unhighlight.
4) Remember that your subclass of the Sme does not own the window. Share the space with
other menu entries, and refrain from drawing outside the subclass’sown section of the menu.
4.6. MenuButton Widget
Application Header file <X11/Xaw/MenuButton.h>
Class Header file <X11/Xaw/MenuButtonP.h>
Class menuButtonWidgetClass
Class Name MenuButton
Superclass Command
The MenuButton widget is an area, often rectangular,that displays a graphic. The graphic may
be a text string containing multiple lines of characters in an 8 bit or 16 bit character set (to be dis-
played with a font), or in a multi-byte encoding (for use with a fontset). The graphic may also be
abitmap or pixmap.
When the pointer cursor is on a MenuButton widget, the MenuButton becomes highlighted by
drawing a rectangle around its perimeter.This highlighting indicates that the MenuButton is
ready for selection. When a pointer button is pressed, the MenuButton widget will pop up the
menu named in the menuName resource.
4.6.1. Resources
When creating a MenuButton widget instance, the following resources are retrievedfrom the
argument list or from the resource database:
Name Class Type Notes Default Value
accelerators Accelerators AcceleratorTable NULL
ancestorSensitive AncestorSensitive Boolean D True
background Background Pixel XtDefaultBackground
backgroundPixmap Pixmap Pixmap XtUnspecifiedPixmap
bitmap Bitmap Pixmap None
borderColor BorderColor Pixel XtDefaultForeground
borderPixmap Pixmap Pixmap XtUnspecifiedPixmap
borderWidth BorderWidth Dimension 1
callback Callback XtCallbackList NULL
colormap Colormap Colormap Parent’sColormap
cornerRoundPercent CornerRoundPercent Dimension 25
cursor Cursor Cursor None
cursorName Cursor String None
depth Depth int C Parent’sDepth
destroyCallback Callback XtCallbackList NULL
encoding Encoding UnsignedChar XawTextEncoding8bit
font Font XFontStruct XtDefaultFont
fontSet FontSet XFontSet XtDefaultFontSet
foreground Foreground Pixel XtDefaultForeground
height Height Dimension A graphic height + 2 * internalHeight
highlightThickness Thickness Dimension A 2(0ifShaped)
insensitiveBorder Insensitive Pixmap GreyPixmap
67