SunView and Canvases help

Noam Bernstein noamb at tybalt.caltech.edu
Thu Mar 9 17:04:04 AEST 1989


Heeelp.

I'm looking for help from anyone who has used SunView on a Sun 386i The
following program is copied almost straight out of the manual.
Unfortunately, it doesn't seem to work.  It hangs on the window_main_loop
and waits for me to either type ^C or close the window to continue.


/* compile using the command 					   */ 
/* "cc -o object.file source.file -lsuntool -lsunwindow -lpixrect" */

#include </usr/cluster/devel/sunview_devel/include/suntool/sunview.h>
#include </usr/cluster/devel/sunview_devel/include/suntool/canvas.h>
main (argc, argv)
	int argc;
	char **argv;
	{
	Frame frame;
	Canvas canvas;
	Pixwin *pw;

	frame = window_create (NULL, FRAME, 0);
	canvas = window_create (frame, CANVAS, 0);
	pw = canvas_pixwin (canvas);
	pw_vector (pw, 50,50,100,100,PIX_SRC,1);
	pw_text (pw,125,200,PIX_SRC,0,"Hello World!");
        window_main_loop (frame);
	window_done(frame);
        exit (0);
	}

I am compiling using the command in the comment on the second line.

	noamb at tybalt.caltech.edu
	noamb at citiago		BITNET



More information about the Comp.sys.sun mailing list