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

motif_frame(motif) Motif motif_frame(motif)

NAME

motif_frame - put a frame around a widget not having Motif 3D look

DESCRIPTION

The motif_frame class allows the user to give the Motif 3D look to classes or widgets that don't have it, such as the motif_workspace class.

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

SUPERCLASS

motif_manager

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 Frame widget */

/* In: scripts/motif/frame.scr */ -- The XmDrawingArea widget which underlies the motif_workspace -- class has no visual appearance. By making it the child of a -- motif_frame object, it gains visible boundaries.

<motifinit motif application= motif; motif_frame new: wkspc_frame parent= motif @ "shadowThickness" : 10 create! ; motif_drawing_area new: wkspc parent= wkspc_frame @ "width" : 256 @ "height" : 256 create! ; motif on! start!;

SEE ALSO

motif, motif_frame


Please send comments and suggestions to
consult@rpi.edu