Specifications

Athena Widget Set libXaw 1.0.7
Name Class Type Notes Default Value
width Width Dimension ATextWidth + margins
ancestorSensitive The sensitivity state of the ancestors of this widget. Awidget is insensi-
tive ifeither it or anyofits ancestors is insensitive.This resource should
not be changed with XtSetValues,although it may be queried.
callback All callback functions on this list are called when the SimpleMenu noti-
fies this entry that the user has selected it.
destroyCallback All functions on this list are called when this widget is destroyed.
font The text font to use when displaying the label,when the international
resource is false.
fontSet The text font set to use when displaying the label,when the interna-
tional resource is true.
foreground Apixel value which indexesthe SimpleMenu’scolormap to derive the
foreground color of the menu entry’swindow. This color is also used to
render all 1’sinthe left and right bitmaps.
height
width The height and width of this widget in pixels. Keep in mind that the
SimpleMenu widget will force the width of all menu entries to be the
width of the longest entry.
international This is a boolean flag, only settable at widget creation time. Avalue of
false signals the widget to use pre-R6 internationalization (specifically,
the lack thereof), such as using fonts for displaying text, etc. Avalue of
true directs the widget to act in an internationalized manner,such as uti-
lizing font sets for displaying text, etc.
justify Howthe label is to be rendered between the left and right margins when
the space is wider than the actual text. This resource may be specified
with the values XtJustifyLeft, XtJustifyCenter,or XtJustifyRight.
When specifying the justification from a resource file the values left,
center,or right may be used.
label This is a the string that will be displayed in the menu entry.The exact
location of this string within the bounds of the menu entry is controlled
by the leftMargin, rightMargin, vertSpace,and justify resources.
leftBitmap
rightBitmap This is a name of a bitmap to display in the left or right margin of the
menu entry.All 1’sinthe bitmap will be rendered in the foreground
color,and all 0’swill be drawn in the background color of the Simple-
Menu widget. It is the programmers’ responsibility to makesure that the
menu entry is tall enough, and the appropriate margin wide enough to
accept the bitmap. If care is not taken the bitmap may extend into
another menu entry,orinto this entry’slabel.
leftMargin
rightMargin This is the amount of space (in pixels) that will be left between the edge
of the menu entry and the label string.
sensitive Whether or not the toolkit should pass user events to this widget. The
widget will not get input events if either ancestorSensitive or sensitive is
False.
vertSpace This is the amount of vertical padding, expressed as a percentage of the
height of the font, that is to be placed around the label of a menu entry..
The label and bitmaps are always centered vertically within the menu.
64