Motif Widgets
Remember to set your server control to xhost
www.cs.curtin.edu.au before running these programs. Also they
will not work if you are using a proxy server or you are running
your browser on a machine different from the one you are
displaying it on.
You may also like to choose a smaller font
since these examples also produce listings.
label : This program illustrates how to create and use a
label widget. In addition, it introduces the notion of
XmStrings, the Motif version of a character string.
This program is extensively commented to be used as a
reference for the other programs.
push_button :This program illustrates using a push button, and
introduces the concept of callback.
scroll_bar : This program demonstrates a Motif scrollbar,
and expands on the use of callbacks as introduced in
push_button.c
text : This program introduces a text editor widget, as well as
making use of callbacks, and setting resources inside
a program.
list : This program illustrates a list widget. This widget is
capable of providing a list of objects (strings) that the
user can select from. In addition, this program again
uses callbacks and XmStrings.
Dave Shreiner
Silicon Graphics.
xmbutton : A PushButton widget.
xmdialogs : Motif dialog widgets example.
xmeditor : Demonstrates the Motif text, main window, and dialog
widgets, as well as the cut and paste functions.
xmfonts : x
xmlist : Creates a List widget with a number of items that you
can choose from. Each of these items demonstrates a
particular capability of the List widget.
xmmenushel : Popup menu example with sub-menus.
xmoption : Option Menu Example.
xmpopup : Popup Menu Example.
xmprotocol : This program demonstrates the Motif protocols for
communication between the toolkit and the window manager.
xmpulldown : Pulldown Menu Example.
xmsubmenus : Popup Menu with Submenus Example.