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

motif_row_column(motif) Motif motif_row_column(motif)

NAME

motif_row_column - a container for widgets laid out in rows and columns

DESCRIPTION

A RowColumn is a container that can hold any type of widget. It has a variety of layout policies, but the most often it lays out widgets in rows and columns.

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

SUPERCLASS

motif_manager

INSTANCE VARIABLES

entry_action if specified, disables the activation actions for all ToggleButtons PushButton, and CascadeButton widgets and gadgets contained within the RowColumn widget. This action is executed instead. The name of the item that caused the action can be found by sending current_widget? to motif. If this action is not specified, the activation actions for each item in the RowColumn work as normal.

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.

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

/* Illustrate the row column widget */ /* In: scripts/motif/rowcolumn.scr */ /* SEE ALSO: scripts/motif/rowcolumn2.scr */ <motifinit

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!;

SEE ALSO

motif, motif_manager


Please send comments and suggestions to
consult@rpi.edu