Specifications

Athena Widget Set libXaw 1.0.7
spring_loaded. The MenuButton widget does not copythe value of this
resource into newly allocated memory.The application programmer must
pass the resource value in nonvolatile memory.
pointerColor A pixel value which indexesthe widget’scolormap to derive the fore-
ground color of the pointer symbol specified by the cursorName
resource.
pointerColorBackground A pixel value which indexesthe widget’scolormap to derive the
background color of the pointer symbol specified by the cursor-
Name resource.
resize Specifies whether the widget should attempt to resize to its preferred
dimensions wheneverits resources are modified with XtSetValues.This
attempt to resize may be denied by the parent of this widget. The parent
is always free to resize the widget regardless of the state of this resource.
screen The screen on which this widget is displayed. This is not a settable
resource.
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.
shapeStyle Nonrectangular widgets may be created using this resource. Nonrectan-
gular widgets are supported only on a server that supports the Shape
Extension.Ifnonrectangular widgets are specified for a server lacking
this extension, the shape is ignored and the widgets will be rectangular.
The following shapes are currently supported: XmuShapeRectangle,
XmuShapeOval, XmuShapeEllipse,and XmuShapeRoundedRectan-
gle.Aconverter is registered for this resource that will convert the fol-
lowing strings: rectangle, oval, ellipse, and roundedRectangle.
translations The ev e nt bindings associated with this widget.
x
yThe location of the upper left outside corner of this widget in its parent.
4.6.2. MenuButton Actions
The MenuButton widget supports the following actions:
•Switching the button between the foreground and background colors with set and unset
•Processing application callbacks with notify
•Switching the internal border between highlighted and unhighlighted states with highlight
and unhighlight
•Popping up a menu with PopupMenu
The following are the default translation bindings used by the MenuButton widget:
<EnterWindow>: highlight( )
<LeaveWindow>: reset( )
<BtnDown>: reset( )PopupMenu(
4.6.3. MenuButton Actions
The full list of actions supported by MenuButton is:
highlight(condition)Displays the internal highlight border in the color (foreground or back-
ground )that contrasts with the interior color of the Command widget.
The conditions WhenUnset and Always are understood by this action
70