Specifications
Athena Widget Set libXaw 1.0.7
whether or not a windowmanager may interpose itself between this win-
dowand the root windowofthe display.For more information see the
Interclient Communications Conventions Manual.
popdownCallback
popupCallback These callback functions are called by the Xt Intrinsics wheneverthe
shell is popped up or down (See XToolkit Intrinsics — C Language
Interface for details).
popupOnEntry The XawPositionSimpleMenu action will, by default, popup the Sim-
pleMenu with its label (or first entry) directly under the pointer.To
popup the menu under another entry,set this resource to the menu entry
that should be under the pointer,when the menu is popped up. This
allows the application to offer the user a default menu entry that can be
selected with out moving the pointer.
ro wHeight If this resources is zero (the default) then each menu entry will be given
its desired height. If this resource has anyother value then all menu
entries will be forced to be ro wHeight pixels high.
saveUnder If this is True then save unders will be active onthe menu’swindow.
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.
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.2.2. SimpleMenu Actions
The SimpleMenu widget supports the following actions:
•Switching the entry under the mouse pointer between the foreground and background col-
ors with highlight and unhighlight
•Processing menu entry callbacks with notify
The following are the default translation bindings used by the SimpleMenu widget:
<EnterWindow>: highlight( )
<LeaveWindow>: unhighlight( )
<BtnMotion>: highlight( )
<BtnUp>: MenuPopdown( ) notify( ) unhighlight( )
The user can pop down the menu without activating anyofthe callback functions by releasing the
pointer button when no menu item is highlighted.
The full list of actions supported by SimpleMenu is:
highlight() Highlight the menu entry that is currently under the pointer.Only a item
that is highlighted will be notified when the notify action is invoked.
The look of a highlighted entry is determined by the menu entry.
unhighlight() Unhighlights the currently highlighted menu item, and returns it to its
normal look.
61