<<<<<<<<<<<<<<<<<

motif_popup_menu(motif) Motif motif_popup_menu(motif)

NAME

motif_popup_menu - a popup menus

DESCRIPTION

A PopupMenu is a menu that appears when the user presses mouse button 3 on the parent of the popup.

PopupMenu is a RowColumn widget and thus inherits the RowColumn resources.

For a more complete description of this Motif widget, consult "OSF/Motif Programmer's Reference."

SUPERCLASS

motif_bulletin_board

INSTANCE VARIABLES

MESSAGES

@ resource selects resource for a subsequent set or query.

: value sets the current resource to value. Since most resources have mixed case, you should enclose any resource name in quotes. Resource names are the Motif names with the XmN prefix removed. Some resources can only be set before the widget is created. For efficiency, set as many resources as you can before creation.

scalar_value? returns the value of the current resource whose type is integer.

string_value? returns the value of the current resource whose type is string.

pointer_value? returns the value of the current resource whose type is a pointer of any kind.

create! creates an instance of the widget. Any resources that have been specified prior to the create! will be set. An id? message also sends a create!.

on! realizes the widget. Realizing a widget creates its windows and displays it when it is managed.

EXAMPLES

/* Illustrate popup menu */ /* In: scripts/motif/popup.scr */

<motifinit <events motif application="Popup Menus";

motif_form new: aForm parent=motif create! ; motif_push_button new: aButton parent=aForm @ "labelString" : "Push MB3 for a popup" create! ; motif_popup_menu new: aPopup parent=aButton create! ; motif_push_button new: button1 parent=aPopup @ "labelString" : "Do Nothing" create! ; motif_push_button new: button2 parent=aPopup @ "labelString" : "Exit Application" activate_action=exit_popup create! ; actions new: exit_popup tick_actions+ "parser exit!;" ; motif widget_tree!; motif on! start!;

SEE ALSO

motif, motif_row_column


Please send comments and suggestions to
consult@rpi.edu