Next: What will we learn from this program? Up: A First MOTIF Program Previous: A First MOTIF Program

What will our program do?

Our program, push.c, will create a window with a single push button in it. The button contains a string ``Push Me''. When the button is pressed (with a left mouse button) a string is printed to standard output and NOT to any window that we have created.

To quit the program you will either have to ctrl-c it to quit it from the command line or use the window to quit - depress right mouse down around the top perimeter of the window and choose quit option from menu.

We will soon learn how to create our own quit buttons, menus etc.

The display on the screen will look like this:

Fig. 4 Push.c output


Dave.Marshall@cm.cf.ac.uk
Tue May 24 16:52:56 BST 1994