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

motif_option_menu(motif) Motif motif_option_menu(motif)

NAME

motif_option_menu - a label, selection area and pulldown menu.

DESCRIPTION

An OptionMenu is a RowColumn widget configured to run an an OptionMenu.

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

SUPERCLASS

motif_row_column

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.

EXAMPLE

/* Create an option menu */ /* In scripts/motif/optionmenu.scr */

<motifinit

motif_form new: aForm parent=motif create! ;

motif_pulldown_menu new: pull1 parent=aForm create! ; motif_option_menu new: anOptionMenu parent=aForm @ "labelString" : "File Type" @ "subMenuId" : [pull1 id?] create! ; motif_push_button new: button1 parent=pull1 @ "labelString" : "3D" create! ; motif_push_button new: button2 parent=pull1 @ "labelString" : "2D No header" create! ; motif_push_button new: button3 parent=pull1 @ "labelString" : "Signa" @ "set" : 1 create! ; motif_push_button new: button4 parent=pull1 @ "labelString" : "XIM" create! ; motif_push_button new: button5 parent=pull1 @ "labelString" : "CT 9800" create! ;

motif on! start!;

SEE ALSO

motif, motif_row_column


Please send comments and suggestions to
consult@rpi.edu