For a more complete description of this Motif widget, consult "OSF/Motif Programmer's Reference."
map_action is an action that is executed when the widget is mapped.
unmap_action is an action that is executed when the widget is unmapped.
: 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.
motif application="Row Column Example";
motif_row_column new: aRowColumn parent=motif @ "packing" : XmPACK_COLUMN @ "numColumns" : 2 create! ; motif_push_button new: b1 parent=aRowColumn @ "labelString" : "Button 1" activate_action=activate_b1 create! ; actions new: activate_b1 tick_actions="! b1 activated" ; motif_push_button new: b2 parent=aRowColumn @ "labelString" : "Button 2" create! ; motif_push_button new: b3 parent=aRowColumn @ "labelString" : "Button 3" create! ; motif_push_button new: b4 parent=aRowColumn @ "labelString" : "Button 4" create! ;
motif_push_button new: b5 parent=aRowColumn @ "labelString" : "Button 5" create! ; arowcolumn resources!; motif on! start!;